replaced build action
This commit is contained in:
parent
8d3dfc24bc
commit
99893aea87
@ -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: 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
|
||||
|
||||
- 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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user