2023-07-06 09:29:32 +02:00
|
|
|
name: docker
|
|
|
|
|
|
|
|
run-name: ${{ gitea.actor }} testing docker builder
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-07-06 09:35:03 +02:00
|
|
|
#branches: none #[ main ]
|
2023-07-06 09:29:32 +02:00
|
|
|
pull_request:
|
2023-07-06 09:35:03 +02:00
|
|
|
#branches: none # [ main ]
|
2023-07-06 09:29:32 +02:00
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-container:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
2023-07-06 09:48:29 +02:00
|
|
|
uses: actions/setup-qemu-action@v2
|
2023-07-06 09:29:32 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
2023-07-06 09:48:29 +02:00
|
|
|
uses: actions/setup-buildx-action@v2
|
2023-07-06 09:29:32 +02:00
|
|
|
-
|
|
|
|
name: Login to Gitea Package Registry
|
2023-07-06 09:48:29 +02:00
|
|
|
uses: actions/login-action@v2
|
2023-07-06 09:29:32 +02:00
|
|
|
with:
|
|
|
|
registry: gitea.ocram85.com
|
2023-07-06 09:35:03 +02:00
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
password: ${{ secrets.PASSWORD }}
|
2023-07-06 09:29:32 +02:00
|
|
|
-
|
|
|
|
name: Build and push
|
2023-07-06 09:48:29 +02:00
|
|
|
uses: actions/build-push-action@v4
|
2023-07-06 09:29:32 +02:00
|
|
|
with:
|
|
|
|
push: false #true
|
|
|
|
tags: gitea.ocram85.com/ocram85/swarmproxy:next
|