mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 00:32:35 +10:00
fix build-deploy script
This commit is contained in:
11
.github/workflows/build-deploy.yml
vendored
11
.github/workflows/build-deploy.yml
vendored
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user