Skip to content

fix: remove prefix

fix: remove prefix #2

Workflow file for this run

name: Build and Push CI Deployment Cleanup Docker Image
on:
push:
tags: [ 'ci-deployment-cleanup-v*' ]
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: swissdatasciencecenter/renku-ci-cleanup
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}},prefix=ci-deployment-cleanup-v
type=semver,pattern={{major}}.{{minor}},prefix=ci-deployment-cleanup-v
type=semver,pattern={{major}},prefix=ci-deployment-cleanup-v
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ci-deployment-cleanup
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max