From b598050178678b4116b440afe144b1928c5196e7 Mon Sep 17 00:00:00 2001 From: Andy Pack Date: Fri, 19 Jul 2024 20:25:59 +0100 Subject: [PATCH] adding gitea actions --- .gitea/workflows/docker.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/docker.yml diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml new file mode 100644 index 0000000..6e80882 --- /dev/null +++ b/.gitea/workflows/docker.yml @@ -0,0 +1,34 @@ +name: Deploy Hugo site to Prod + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest + name: Build Container + steps: + - uses: actions/checkout@v4 + with: + github-server-url: https://gitea.sheep-ghoul.ts.net + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + registry: gitea.sheep-ghoul.ts.net + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build Container + uses: docker/build-push-action@v2 + with: + push: true + tags: gitea.sheep-ghoul.ts.net/sarsoo/sarsooxyz.hugo:latest + file: Dockerfile.pub