bugfix/15-docker-deployment #21
@@ -27,12 +27,17 @@ jobs:
|
|||||||
--username "${{ secrets.REGISTRY_USER }}" \
|
--username "${{ secrets.REGISTRY_USER }}" \
|
||||||
--password-stdin
|
--password-stdin
|
||||||
|
|
||||||
|
- name: Prepare Docker image tags
|
||||||
|
run: |
|
||||||
|
IMAGE_REPO="$(echo "git.miaurizius.de/${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')"
|
||||||
|
echo "IMAGE_REPO=$IMAGE_REPO" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Build and push multi-arch Docker image
|
- name: Build and push multi-arch Docker image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--file ./Dockerfile \
|
--file ./Dockerfile \
|
||||||
--tag git.miaurizius.de/${{ gitea.repository }}:latest \
|
--tag "$IMAGE_REPO:latest" \
|
||||||
--tag git.miaurizius.de/${{ gitea.repository }}:${{ gitea.event.release.tag_name }} \
|
--tag "$IMAGE_REPO:${{ gitea.event.release.tag_name }}" \
|
||||||
--push \
|
--push \
|
||||||
.
|
.
|
||||||
Reference in New Issue
Block a user