Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Github Workflow #6

Merged
merged 3 commits into from
Sep 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading