From 5f023420d2004aa7f7e1d9a8b38a7701b762a498 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 3 May 2025 22:17:23 +1200 Subject: [PATCH] Update for pushing --- .forgejo/workflows/image.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/image.yaml b/.forgejo/workflows/image.yaml index 6e1986c..07e1922 100644 --- a/.forgejo/workflows/image.yaml +++ b/.forgejo/workflows/image.yaml @@ -15,6 +15,13 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 + - name: Login to registery + uses: docker/login-action@v3 + with: + registry: git.oooo.nz + username: ${{ github.actor }} + password: ${{ secrets.PUSH_TOKEN }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5.6.1 @@ -37,7 +44,9 @@ jobs: uses: docker/build-push-action@v6.13.0 with: context: . - file: ./Dockerfile - push: false + push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} + platforms: linux/amd64,linux/arm64 + secrets: | + GIT_AUTH_TOKEN=${{ secrets.PUSH_TOKEN }} \ No newline at end of file