From d398412eee0b5cfdd5c7cc4ae1ce2efc82f8f1d2 Mon Sep 17 00:00:00 2001 From: irl Date: Sun, 25 May 2025 19:40:37 +0100 Subject: [PATCH] wip --- .forgejo/workflows/build-and-publish.yaml | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .forgejo/workflows/build-and-publish.yaml diff --git a/.forgejo/workflows/build-and-publish.yaml b/.forgejo/workflows/build-and-publish.yaml new file mode 100644 index 0000000..cb78eba --- /dev/null +++ b/.forgejo/workflows/build-and-publish.yaml @@ -0,0 +1,31 @@ +name: Build and publish + +on: + push: + branches: + - main + +jobs: + build-and-push-arch: + runs-on: ubuntu-latest + steps: + - name: Checkout the repo + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to the registry + uses: docker/login-action@v3 + with: + registry: guardianproject.dev + username: ${{ github.actor }} + password: ${{ secrets.PACKAGE_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + file: src/Dockerfile + push: true + tags: guardianproject.dev/${{ github.actor }}/${{ env.CONTAINER_NAME }}:latest