test ci
All checks were successful
docker / build-container (push) Successful in 16s
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/next Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
docker / build-container (pull_request) Successful in 30s

This commit is contained in:
OCram85 2023-07-10 11:44:43 +02:00
parent 3de1e0b0b7
commit a07c845042
2 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,51 @@
name: docker
run-name: Container Image Deployment
on:
push:
branches:
- 'master'
tags:
- 'v*'
jobs:
build-container:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
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:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
#tags: gitea.ocram85.com/ocram85/swarmproxy:next2

View File

@ -34,5 +34,5 @@ jobs:
name: Build and push name: Build and push
uses: actions/build-push-action@v4 uses: actions/build-push-action@v4
with: with:
push: true push: false
tags: gitea.ocram85.com/ocram85/swarmproxy:next2 tags: gitea.ocram85.com/ocram85/swarmproxy:next2