Skip to content

Improve docker labels and move safe git dir to entrypoint #11

Improve docker labels and move safe git dir to entrypoint

Improve docker labels and move safe git dir to entrypoint #11

Workflow file for this run

name: Publish Docker image
permissions:
contents: read
on:
push:
tags:
- "latest"
jobs:
push_to_registry:
name: Push Docker image to Docker hub
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKER_REPOSITORY_LOGIN }}
password: ${{ secrets.DOCKER_REPOSITORY_PASSWORD }}
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build action image
run: make docker-build
env:
IMAGE_TAG: "docker.io/botsudo/action-scrutinizer:latest"
PLATFORM: "linux/amd64,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6"
ACTION: push
- name: Sign the manifest
uses: sudo-bot/action-docker-sign@latest
with:
image-ref: "docker.io/botsudo/action-scrutinizer:latest"
private-key-id: "${{ vars.DOCKER_PRIVATE_KEY_ID }}"
private-key-name: "${{ vars.DOCKER_PRIVATE_KEY_NAME }}"
private-key: ${{ secrets.DOCKER_PRIVATE_KEY }}
private-key-passphrase: ${{ secrets.DOCKER_PRIVATE_KEY_PASSPHRASE }}
sign-manifest: true
notary-auth: "${{ secrets.DOCKER_REPOSITORY_LOGIN }}:${{ secrets.DOCKER_REPOSITORY_PASSWORD }}"