Skip to content

Commit

Permalink
Merge pull request #6 from jim380/develop
Browse files Browse the repository at this point in the history
Fix Github Workflow
  • Loading branch information
jim380 authored Sep 17, 2023
2 parents 7553231 + 0887bac commit 5c59554
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:
name: Build Docker image and push to repositories
# run only when code is compiling and tests are passing
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

# steps to perform in job
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

# setup Docker buld action
- name: Set up Docker Buildx
Expand All @@ -34,7 +37,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}
password: ${{ github.token }}

- name: Extract metadata (tags, labels) for Docker
id: meta
Expand All @@ -43,7 +46,7 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build image and push to GitHub Container Registry
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
# Note: tags has to be all lower-case
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 5c59554

Please sign in to comment.