Skip to content

Should have used entrypoint in dockerfile #7

Should have used entrypoint in dockerfile

Should have used entrypoint in dockerfile #7

Workflow file for this run

name: Configure and Build in Docker
on:
push:
branches:
- dockertest
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
permissions:
contents: read
packages: write
attestations: write
id-token: write
name: Configure and Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Fix lowercase name
id: tolower
run: |
echo imagename=$(echo ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ steps.tolower.outputs.imagename }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
id: push
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ steps.tolower.outputs.imagename }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
- name: Inspect
run: |
docker buildx imagetools inspect ${{ steps.tolower.outputs.imagename }}:${{ steps.meta.outputs.version }}