2023-10-08 15:55:01 +02:00
|
|
|
name: Build Image for Deployment
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2023-10-08 16:11:33 +02:00
|
|
|
- '*'
|
2023-10-08 15:55:01 +02:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: ghcr.io/catthehacker/ubuntu:act-latest@sha256:5deec608bdbd2120c294d59460f3e733b0822b3a1bcaa2edaffc761055f81847
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
|
|
|
|
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
|
|
|
|
|
|
|
|
- name: Login to gitea container registry
|
|
|
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
|
|
|
|
with:
|
|
|
|
registry: git.rabbithole.cyou
|
|
|
|
username: alice-bot
|
|
|
|
password: ${{ secrets.GT_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5
|
|
|
|
with:
|
|
|
|
push: true
|
2023-10-08 16:52:15 +02:00
|
|
|
tags: git.rabbithole.cyou/paravielfalt/mastodon:${{ gitea.ref_name }}
|