Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius committed Oct 3, 2023
1 parent 18825dc commit 9a090c8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
build:
name: Compile and Test
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

strategy:
matrix:
Expand Down Expand Up @@ -116,11 +119,11 @@ jobs:

- name: Login to GitHub
if: ${{ steps.docker-vars.outputs.has-docker-secret == 'true' }}
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ steps.docker-vars.outputs.docker-secret }}
password: ${{ steps.docker-vars.outputs.docker-secret }}

- name: Build and push
uses: docker/build-push-action@v2
Expand All @@ -139,7 +142,7 @@ jobs:
org.opencontainers.image.created=${{ steps.docker-vars.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.licenses=${{ fromJson(steps.repo.outputs.result).license.spdx_id }}
- name: Clean Docker environment
shell: bash
run: |
Expand Down

0 comments on commit 9a090c8

Please sign in to comment.