swarmproxy/.gitea/workflows/deploy.yaml

51 lines
1.3 KiB
YAML
Raw Normal View History

2023-07-10 14:04:21 +02:00
name: deployment
2023-07-10 13:51:02 +02:00
run-name: tag based container build and push
on:
push:
branches:
- 'master'
tags:
- 'v*'
jobs:
2023-07-10 13:51:02 +02:00
deployment-job:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
-
name: Docker meta
id: meta
2023-07-10 11:54:34 +02:00
uses: actions/metadata-action@v4
with:
images: |
2023-07-10 13:41:38 +02:00
gitea.ocram85.com/ocram85/swarmproxy
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Set up QEMU
uses: actions/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: actions/setup-buildx-action@v2
-
name: Login to Gitea Package Registry
uses: actions/login-action@v2
with:
registry: gitea.ocram85.com
username: ${{ secrets.USERNAME }}
#password: ${{ secrets.PASSWORD }}
password: ${{ secrets.TOKEN }}
-
name: Build and push
uses: actions/build-push-action@v4
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
#tags: gitea.ocram85.com/ocram85/swarmproxy:next2