Skip to content

Add source code label to Dockerfile to link to ghcr #8

Add source code label to Dockerfile to link to ghcr

Add source code label to Dockerfile to link to ghcr #8

Workflow file for this run

name: Build OCI image
on: push
jobs:
Build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
with:
images: |
${{ github.repository_owner }}/${{ github.repository }}
ghcr.io/${{ github.repository }}
- uses: docker/bake-action@v5
with:
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
push: true