diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..a99a97d --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,36 @@ +name: build + +on: + push: + branches: + - 'main' + +env: + IMAGE_NAME: git.s-algo.com/arnaud/arnaudscheffler.fr + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: git.s-algo.com + username: ${{ gitea.repository_owner }} + password: ${{ secrets.PACKAGE_PAT}} + + - name: Extract metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.IMAGE_NAME }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + tags: ${{ steps.meta.outputs.tags }} + annotations: ${{ steps.meta.outputs.annotations }} + build-args: | + PUBLIC_UMAMI_URL=${{ secrets.PUBLIC_UMAMI_URL}} + PUBLIC_UMAMI_WEBSTIE=${{ secrets.PUBLIC_UMAMI_WEBSTIE}} + push: true