d2iq-release-tag-version #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: d2iq-release-tag-version | |
on: | |
workflow_dispatch: | |
inputs: | |
releaseTag: | |
description: 'Existing Tag to checkout.' | |
type: string | |
required: true | |
default: '' | |
imageName: | |
description: 'Release Image Name' | |
type: string | |
required: true | |
default: 'ghcr.io/mesosphere/gitea:latest' | |
jobs: | |
docker-rootless: | |
runs-on: | |
- self-hosted | |
- large | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.releaseTag }} | |
fetch-tags: true | |
- uses: docker/setup-qemu-action@v3 | |
- uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: build rootless docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
file: Dockerfile.rootless | |
tags: ${{ inputs.imageName }} |