From 16a99ba87589d55ad2ade12fe0a747d55b7f88f3 Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 25 Oct 2024 13:51:15 +0200 Subject: [PATCH] CI: push to repository --- .forgejo/workflows/build.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index b411742..9ed2bfd 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -1,8 +1,11 @@ -on: [push] +on: + push: + jobs: build: runs-on: container steps: + - run: echo "Will push image to: ${{ vars.REPOSITORY }}" - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 @@ -23,9 +26,15 @@ jobs: run: ng build - name: Build container - uses: actions/buildah-build@v1 + uses: action with: image: treetrail-frontend #tags: foo # v1 ${{ github.sha }} containerfiles: | ./Containerfile + + - uses: actions/push-to-registry@v2 + with: + registry: "docker://${{ vars.REPOSITORY }}" + image: treetrail-frontend + tags: latest