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:
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