From a07c8450429e4755d53327cbcbbcabd35354e752 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Mon, 10 Jul 2023 11:44:43 +0200 Subject: [PATCH] test ci --- .gitea/workflows/deploy.yaml | 51 ++++++++++++++++++++++++++++++++++++ .gitea/workflows/docker.yaml | 2 +- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..f2460ed --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -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 + diff --git a/.gitea/workflows/docker.yaml b/.gitea/workflows/docker.yaml index b75a950..7643689 100644 --- a/.gitea/workflows/docker.yaml +++ b/.gitea/workflows/docker.yaml @@ -34,5 +34,5 @@ jobs: name: Build and push uses: actions/build-push-action@v4 with: - push: true + push: false tags: gitea.ocram85.com/ocram85/swarmproxy:next2