From 6ff36cb1e499078d74bbf7bd9ebdd82827b8973d Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Thu, 8 Jun 2023 16:27:14 +0200 Subject: [PATCH] fix build-deploy script --- .github/workflows/build-deploy.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index e7419b62..1f8f92cc 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -2,9 +2,8 @@ name: Build and Deploy on: workflow_dispatch: - -env: - REGISTRY_IMAGE: amruthpillai/reactive-resume + release: + types: [published] jobs: build: @@ -19,6 +18,7 @@ jobs: - server platform: - linux/amd64 + - linux/arm64 steps: - name: Checkout the repository @@ -32,7 +32,7 @@ jobs: id: meta uses: docker/metadata-action@v4.5.0 with: - images: ${{ env.REGISTRY_IMAGE }} + images: amruthpillai/reactive-resume tags: | type=raw,value=${{ matrix.image }}-latest type=raw,value=${{ matrix.image }}-${{ steps.version.outputs.current-version }} @@ -71,9 +71,10 @@ jobs: deploy: name: Deploy - needs: build runs-on: ubuntu-latest + needs: build + steps: - name: Install DigitalOcean CLI uses: digitalocean/action-doctl@v2.3.0