From b4f6b8cc98b58f112b5c43af496e1431dba87021 Mon Sep 17 00:00:00 2001 From: Adrien Beaudouin Date: Wed, 31 Jul 2024 22:17:57 +0200 Subject: [PATCH] try gitea action --- .gitea/workflows/build.yaml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 53e9cf2..67dfd3d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -21,19 +21,32 @@ jobs: key: ${{ runner.os }}-resources - name: Build run: hugo --minify + - uses: actions/cache@v4 + id: restore-build + with: + path: public + key: ${{ runner.os }}-public + deploy: + runs-on: ubuntu-latest + needs: build + #if: gitea.event_name == 'tag' + steps: + - uses: actions/checkout@v4 + - uses: actions/cache@v4 + id: restore-build + with: + path: public + key: ${{ runner.os }}-public - uses: docker/metadata-action@v5 - if: gitea.event_name == 'tag' id: meta with: images: ${{ vars.CONTAINER_REGISTRY_URL }}/${{ gitea.repository }} - uses: docker/login-action@v3 - if: gitea.event_name == 'tag' with: registry: ${{ vars.CONTAINER_REGISTRY_URL }} username: ${{ vars.CONTAINER_REGISTRY_USERNAME }} password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} - uses: docker/build-push-action@v6 - if: gitea.event_name == 'tag' with: context: . push: true