From f5ea8f2e631bf986dd7b29e2a8d9c607e5a04225 Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Mon, 10 Jul 2023 13:20:45 +0200 Subject: [PATCH] add container builds CI trigger workflow --- .gitea/workflows/build-container.yml | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitea/workflows/build-container.yml diff --git a/.gitea/workflows/build-container.yml b/.gitea/workflows/build-container.yml new file mode 100644 index 0000000..668d294 --- /dev/null +++ b/.gitea/workflows/build-container.yml @@ -0,0 +1,40 @@ +name: Build Container +run-name: Build Container +on: ["workflow-dispatch", "push"] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Set up docker + run: | + curl -fsSL https://get.docker.com -o get-docker.sh + sh get-docker.sh + + - name: Set up qemu + uses: https://github.com/docker/setup-qemu-action@v2 + + - name: Set up Buildx + uses: https://github.com/docker/setup-buildx-action@v2 + + - name: Login to git.magmaus3.eu.org + uses: https://github.com/docker/login-action@v2 + with: + registry: git.magmaus3.eu.org + username: ${{ secrets.PERSONAL_REG_USERNAME }} + password: ${{ secrets.PERSONAL_REG_TOKEN }} + + - name: Checkout + uses: actions/checkout@v3 + + - name: Build and push + uses: https://github.com/docker/build-push-action@v4 + env: + ACTIONS_RUNTIME_TOKEN: '' + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: | + git.magmaus3.eu.org/magmaus3/iwm_browser:latest + git.magmaus3.eu.org/magmaus3/iwm_browser:${{ gitea.sha }}