diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 183a2c3..265f9b1 100755 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,7 +1,20 @@ -name: ci +name: Docker on: + schedule: + - cron: '0 6 * * 5' push: + branches: [ "main" ] + tags: [ 'v*.*.*' ] + pull_request: + branches: [ "main" ] + +env: + # Use docker.io or ghcr.io + REGISTRY: docker.io + RELEASE: latest + USER: sthopeless + IMAGE: ${{ github.repository }} jobs: docker: @@ -28,4 +41,4 @@ jobs: with: context: . push: true - tags: sthopeless/gitea-actions-repos-compare:latest \ No newline at end of file + tags: ${{ env.REGISTRY }}/${{ env.USER }}/${{ env.IMAGE }}:${{ env.RELEASE }} \ No newline at end of file