Skip to content

Commit

Permalink
Fix the build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eabruzzese committed Aug 26, 2024
1 parent a130a8e commit 17c8073
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions {{ cookiecutter.project_slug }}/.github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
workflow_dispatch:
push:
branches:
- master
- main
tags:
- v*
pull_request:
branches:
- master
- main

env:
REGISTRY: ghcr.io
Expand All @@ -19,11 +19,14 @@ jobs:
build:
name: Build the Docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to Container Registry
uses: docker/login-action@2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -41,6 +44,7 @@ jobs:
with:
context: .
target: prod
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 17c8073

Please sign in to comment.