2023-07-10 14:04:21 +02:00
|
|
|
name: ci
|
2023-07-06 09:29:32 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-07-11 10:32:44 +02:00
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
2023-07-06 09:29:32 +02:00
|
|
|
pull_request:
|
2023-07-11 10:32:44 +02:00
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
|
2023-07-06 09:29:32 +02:00
|
|
|
|
|
|
|
jobs:
|
2023-07-11 10:32:44 +02:00
|
|
|
docker:
|
2023-07-06 09:29:32 +02:00
|
|
|
runs-on: ubuntu-latest
|
2023-07-10 11:51:45 +02:00
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-latest
|
2023-07-06 09:29:32 +02:00
|
|
|
steps:
|
2023-07-11 10:32:44 +02:00
|
|
|
-
|
|
|
|
name: Docker meta
|
|
|
|
id: meta
|
2023-07-12 14:19:26 +02:00
|
|
|
uses: https://gitea.ocram85.com/actions/metadata-action@v4
|
2023-07-11 10:32:44 +02:00
|
|
|
with:
|
|
|
|
images: |
|
|
|
|
gitea.ocram85.com/ocram85/swarmproxy
|
|
|
|
tags: |
|
|
|
|
type=ref,event=branch
|
|
|
|
type=ref,event=pr
|
|
|
|
type=semver,pattern={{version}}
|
|
|
|
type=semver,pattern={{major}}.{{minor}}
|
2023-07-06 09:29:32 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
2024-06-20 17:24:30 +02:00
|
|
|
uses: https://gitea.ocram85.com/actions/setup-buildx-action@v3
|
2023-07-06 09:29:32 +02:00
|
|
|
-
|
|
|
|
name: Login to Gitea Package Registry
|
2023-07-12 14:19:26 +02:00
|
|
|
uses: https://gitea.ocram85.com/actions/login-action@v2
|
2023-07-06 09:29:32 +02:00
|
|
|
with:
|
|
|
|
registry: gitea.ocram85.com
|
2023-07-10 11:51:45 +02:00
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
#password: ${{ secrets.PASSWORD }}
|
|
|
|
password: ${{ secrets.TOKEN }}
|
2023-07-06 09:29:32 +02:00
|
|
|
-
|
|
|
|
name: Build and push
|
2024-06-20 17:22:51 +02:00
|
|
|
uses: https://gitea.ocram85.com/actions/build-push-action@v6
|
2023-07-06 09:29:32 +02:00
|
|
|
with:
|
2023-07-11 10:32:44 +02:00
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|