try gitea action
All checks were successful
/ build (push) Successful in 15s

This commit is contained in:
2024-07-31 22:10:12 +02:00
parent a4dcae26c2
commit 22a456e8b0

View File

@ -19,30 +19,21 @@ jobs:
with: with:
path: resources path: resources
key: ${{ runner.os }}-resources key: ${{ runner.os }}-resources
- name: Build test - name: Build
run: hugo --minify run: hugo --minify
- uses: actions/upload-artifact@v4
with:
name: dist
path: public
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist
- uses: docker/metadata-action@v5 - uses: docker/metadata-action@v5
if: gitea.event_name == 'tag'
id: meta id: meta
with: with:
images: ${{ vars.CONTAINER_REGISTRY_URL }}/${{ gitea.repository }} images: ${{ vars.CONTAINER_REGISTRY_URL }}/${{ gitea.repository }}
- uses: docker/login-action@v3 - uses: docker/login-action@v3
if: gitea.event_name == 'tag'
with: with:
registry: ${{ vars.CONTAINER_REGISTRY_URL }} registry: ${{ vars.CONTAINER_REGISTRY_URL }}
username: ${{ vars.CONTAINER_REGISTRY_USERNAME }} username: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
if: gitea.event_name == 'tag'
with: with:
context: . context: .
push: true push: true