2024-06-16 22:57:20 +02:00
|
|
|
---
|
2023-10-08 15:55:01 +02:00
|
|
|
name: Build Image for Deployment
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2023-10-15 12:42:41 +02:00
|
|
|
- '**pvz**'
|
2023-10-08 15:55:01 +02:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2024-02-14 21:19:30 +01:00
|
|
|
container: ghcr.io/catthehacker/ubuntu:act-22.04
|
2023-10-08 15:55:01 +02:00
|
|
|
steps:
|
2024-02-14 21:19:30 +01:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: docker/setup-buildx-action@v3
|
2023-10-08 15:55:01 +02:00
|
|
|
|
|
|
|
- name: Login to gitea container registry
|
2024-02-14 21:19:30 +01:00
|
|
|
uses: docker/login-action@v3
|
2023-10-08 15:55:01 +02:00
|
|
|
with:
|
2024-08-26 21:34:24 +02:00
|
|
|
registry: git.wir-sind-auch-menschen.de
|
2023-10-08 15:55:01 +02:00
|
|
|
username: alice-bot
|
|
|
|
password: ${{ secrets.GT_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build and push
|
2024-02-14 21:19:30 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2023-10-08 15:55:01 +02:00
|
|
|
with:
|
2024-06-16 23:04:35 +02:00
|
|
|
context: .
|
2023-10-08 15:55:01 +02:00
|
|
|
push: true
|
2024-08-26 21:34:24 +02:00
|
|
|
tags: git.wir-sind-auch-menschen.de/paravielfalt/mastodon:${{ gitea.ref_name }}
|