From e345350892b0a730c82b0fe1763b409407ab52fb Mon Sep 17 00:00:00 2001 From: Hadley Rich Date: Fri, 26 Apr 2024 10:37:42 +1200 Subject: [PATCH] Add workflow --- .gitea/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..fb0b666 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: Deploy + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + container: catthehacker/ubuntu:act-latest + steps: + - uses: actions/checkout@v4 + + - name: Login to Docker registry + uses: docker/login-action@v3 + with: + registry: git.nice.net.nz + username: hads + password: ${{ secrets.PAT }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: git.nice.net.nz/hads/pocketbase:latest