Skip to content

ci: disable default attestations for docker build and push #7

ci: disable default attestations for docker build and push

ci: disable default attestations for docker build and push #7

name: Create and publish a Docker image to GHCR
on:
push: {}
workflow_dispatch: {}
env:
REGISTRY: ghcr.io
permissions:
contents: read
packages: write
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build and push Docker image (worker)
uses: mr-smithers-excellent/docker-build-push@v6
env:
BUILDX_NO_DEFAULT_ATTESTATIONS: 1
with:
image: ${{ github.event.repository.name }}-worker
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
multiPlatform: true
platform: linux/amd64,linux/arm64,linux/arm/v7
directory: worker
dockerfile: worker/Dockerfile
addLatest: ${{ github.ref_name == 'main' }}
- name: Build and push Docker image (nginx)
uses: mr-smithers-excellent/docker-build-push@v6
env:
BUILDX_NO_DEFAULT_ATTESTATIONS: 1
with:
image: ${{ github.event.repository.name }}-nginx
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
multiPlatform: true
platform: linux/amd64,linux/arm64,linux/arm/v7
directory: nginx
dockerfile: nginx/Dockerfile
addLatest: ${{ github.ref_name == 'main' }}