Skip to content

chore(deps): update dependency validators to v0.28.0 (#57) #30

chore(deps): update dependency validators to v0.28.0 (#57)

chore(deps): update dependency validators to v0.28.0 (#57) #30

Workflow file for this run

name: Publish container image
on:
push:
tags:
- v*
jobs:
multi-arch-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to GitHub Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare release tag
id: tag
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
labels: |
org.opencontainers.image.title=cleanup-gitlab-runner
org.opencontainers.image.description=cleanup-gitlab-runner
org.opencontainers.image.url=https://github.com/containeroo/cleanup-gitlab-runner
org.opencontainers.image.source=https://github.com/containeroo/cleanup-gitlab-runner
org.opencontainers.image.version=${{ steps.tag.outputs.version }}
tags: |
containeroo/cleanup-gitlab-runner:latest
containeroo/cleanup-gitlab-runner:${{ steps.tag.outputs.version }}
ghcr.io/containeroo/cleanup-gitlab-runner:latest
ghcr.io/containeroo/cleanup-gitlab-runner:${{ steps.tag.outputs.version }}