release / nightly images
Build Docker images / push-nightly-image (push) Successful in 2m24s Details
Build Docker images / push-release-image (push) Has been skipped Details

This commit is contained in:
minish 2023-08-31 00:23:45 -04:00
parent 4f86f62d9c
commit d419446b50
Signed by: min
GPG Key ID: FEECFF24EF0CE9E9
1 changed files with 24 additions and 2 deletions

View File

@ -1,11 +1,14 @@
name: Test build name: Build Docker images
on: on:
push: push:
tags:
- '*'
branches: branches:
- main - main
jobs: jobs:
build: push-nightly-image:
if: gitea.ref_type == 'branch'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up QEMU - name: Set up QEMU
@ -23,3 +26,22 @@ jobs:
with: with:
push: true push: true
tags: git.min.rip/${{ gitea.repository }}:latest tags: git.min.rip/${{ gitea.repository }}:latest
push-release-image:
if: gitea.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: git.min.rip
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: git.min.rip/${{ gitea.repository }}:${{ gitea.ref_name }}