fix build-deploy script

This commit is contained in:
Amruth Pillai
2023-06-08 16:27:14 +02:00
parent c513d68813
commit 6ff36cb1e4

View File

@ -2,9 +2,8 @@ name: Build and Deploy
on: on:
workflow_dispatch: workflow_dispatch:
release:
env: types: [published]
REGISTRY_IMAGE: amruthpillai/reactive-resume
jobs: jobs:
build: build:
@ -19,6 +18,7 @@ jobs:
- server - server
platform: platform:
- linux/amd64 - linux/amd64
- linux/arm64
steps: steps:
- name: Checkout the repository - name: Checkout the repository
@ -32,7 +32,7 @@ jobs:
id: meta id: meta
uses: docker/metadata-action@v4.5.0 uses: docker/metadata-action@v4.5.0
with: with:
images: ${{ env.REGISTRY_IMAGE }} images: amruthpillai/reactive-resume
tags: | tags: |
type=raw,value=${{ matrix.image }}-latest type=raw,value=${{ matrix.image }}-latest
type=raw,value=${{ matrix.image }}-${{ steps.version.outputs.current-version }} type=raw,value=${{ matrix.image }}-${{ steps.version.outputs.current-version }}
@ -71,9 +71,10 @@ jobs:
deploy: deploy:
name: Deploy name: Deploy
needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build
steps: steps:
- name: Install DigitalOcean CLI - name: Install DigitalOcean CLI
uses: digitalocean/action-doctl@v2.3.0 uses: digitalocean/action-doctl@v2.3.0