Skip to content

Commit

Permalink
Merge pull request #50 from hanowwl/feat/49-aws-ecs-to-amplify-migration
Browse files Browse the repository at this point in the history
ci: migrate deploy AWS ECS to Amplify
  • Loading branch information
hanseo0507 authored Jul 10, 2023
2 parents 7949e0e + a051796 commit d5cc723
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 73 deletions.
73 changes: 0 additions & 73 deletions .github/workflows/publish.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

on:
release:
types: [published]

env:
IMAGE_NAME: ${{ github.repository }}

jobs:
push_to_registry:
name: Push Docker image to multiple registries
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3

- name: Log in to the Github Container Registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: |
ghcr.io/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

deploy_to_amplify:
name: Request Amplify Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Send request to Amplify deploy webhook
run: curl -X POST -d {} ${{ secrets.AMPLIFY_DEPLOY_WEBHOOK }} -H "Content-Type:application/json"

0 comments on commit d5cc723

Please sign in to comment.