Skip to content

Merge pull request #58 from raft-tech/dependabot/go_modules/ginkgo-6d… #40

Merge pull request #58 from raft-tech/dependabot/go_modules/ginkgo-6d…

Merge pull request #58 from raft-tech/dependabot/go_modules/ginkgo-6d… #40

Workflow file for this run

name: Docker Build
permissions: {}
on:
push:
branches: ['develop']
release:
types: ['published']
env:
IMAGE_REGISTRY: ghcr.io/raft-tech/konfirm
IMAGE_NAME: inspections
jobs:
Publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
outputs:
IMAGE_ID: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.docker.outputs.digest }}
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf #v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 #v3.8.0
- name: Login to the Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 #v3.3.0
with:
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Extract metadata (tags, labels) for Docker
id: metadata
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 #v5.6.1
with:
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=edge,branch=develop
- name: Build and push
id: docker
uses: docker/build-push-action/@5cd11c3a4ced054e52742c5fd54dca954e0edd85 #v6.7.0
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
annotations: ${{ steps.metadata.outputs.annotations }}
labels: ${{ steps.metadata.outputs.labels }}
tags: ${{ steps.metadata.outputs.tags }}