Skip to content

Commit

Permalink
chore: fix docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed Jul 27, 2024
1 parent f730330 commit c70703a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,30 @@ env:
jobs:
push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
registry: ghcr.io
username: includable
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (labels) for Docker
id: meta
uses: docker/metadata-action@v4.4.0
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v6
with:
context: ./lib/docker/craft
push: true
Expand Down

0 comments on commit c70703a

Please sign in to comment.