2023-07-10 14:04:21 +02:00
|
|
|
name: ci
|
2023-07-06 09:29:32 +02:00
|
|
|
|
2023-07-10 13:35:44 +02:00
|
|
|
run-name: docker pipeline
|
2023-07-06 09:29:32 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-07-10 15:10:46 +02:00
|
|
|
branches: [ '*' ]
|
|
|
|
tags-ignore: [ '*' ]
|
2023-07-06 09:29:32 +02:00
|
|
|
pull_request:
|
2023-07-10 15:10:46 +02:00
|
|
|
branches: [ main ]
|
2023-07-06 09:29:32 +02:00
|
|
|
|
|
|
|
jobs:
|
2023-07-10 13:35:44 +02:00
|
|
|
test-build:
|
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-10 11:51:45 +02:00
|
|
|
#-
|
|
|
|
# name: Set up QEMU
|
|
|
|
# uses: actions/setup-qemu-action@v2
|
2023-07-06 09:29:32 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
2023-07-10 11:51:45 +02:00
|
|
|
uses: actions/setup-buildx-action@v2
|
2023-07-06 09:29:32 +02:00
|
|
|
-
|
|
|
|
name: Login to Gitea Package Registry
|
2023-07-10 11:51:45 +02:00
|
|
|
uses: 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
|
2023-07-10 11:51:45 +02:00
|
|
|
uses: actions/build-push-action@v4
|
2023-07-06 09:29:32 +02:00
|
|
|
with:
|
2023-07-10 11:51:45 +02:00
|
|
|
push: false
|
2023-07-10 14:04:21 +02:00
|
|
|
tags: gitea.ocram85.com/ocram85/swarmproxy:next
|