diff --git a/.gitea/workflows/gitea-ci.yaml b/.gitea/workflows/gitea-ci.yaml index 050b037..1bf846a 100644 --- a/.gitea/workflows/gitea-ci.yaml +++ b/.gitea/workflows/gitea-ci.yaml @@ -12,15 +12,21 @@ jobs: uses: docker/login-action@v2 with: registry: git.whimsoc.dev/hendrik/openstreetmap-tile-server - username: ${{ github.repository_owner }} + username: ${{ gitea.repository_owner }} password: ${{ secrets.GITEA_TOKEN }} - - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 - - - name: Build and push Docker image - uses: https://github.com/docker/build-push-action@v6 - with: - context: . - file: ./Dockerfile - push: true - tags: "git.whimsoc.dev/hendrik/openstreetmap-tile-server:${{gitea.sha}},git.whimsoc.dev/hendrik/openstreetmap-tile-server:latest" +# - name: Set up Docker Buildx +# uses: docker/setup-buildx-action@v3 +# - name: Build and push Docker image +# uses: https://github.com/docker/build-push-action@v6 +# with: +# context: . +# file: ./Dockerfile +# push: true +# tags: "git.whimsoc.dev/hendrik/openstreetmap-tile-server:${{gitea.sha}},git.whimsoc.dev/hendrik/openstreetmap-tile-server:latest" + - name: Build and push + run: | + TODAY=$(date +'%Y-%m-%d') + docker build -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${TODAY} -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest . + docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${TODAY} + docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest + \ No newline at end of file