forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.09 KB
/
d2iq-release-tag-version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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: 'docker.io/mesosphere/gitea:latest'
jobs:
docker-rootless:
runs-on:
- self-hosted
- small
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:
username: ${{ secrets.DOCKER_READ_WRITE_USERNAME }}
password: ${{ secrets.DOCKER_READ_WRITE_PASSWORD }}
- 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 }}