fix(release): publish versioned images to Docker Hub
This commit is contained in:
@@ -7,7 +7,6 @@ on:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
packages: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -116,9 +115,9 @@ jobs:
|
|||||||
apt-get install -y docker-ce-cli
|
apt-get install -y docker-ce-cli
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Log in to Gitea container registry
|
- name: Log in to Docker Hub
|
||||||
if: steps.release.outputs.created == 'true'
|
if: steps.release.outputs.created == 'true'
|
||||||
run: echo "${{ secrets.CONTAINER_REGISTRY_TOKEN }}" | docker login git.garvis.dev -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
|
||||||
|
|
||||||
- name: Build and push web image
|
- name: Build and push web image
|
||||||
if: steps.release.outputs.created == 'true'
|
if: steps.release.outputs.created == 'true'
|
||||||
@@ -129,9 +128,9 @@ jobs:
|
|||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
--target runner \
|
--target runner \
|
||||||
--build-arg VERSION="$VERSION" \
|
--build-arg VERSION="$VERSION" \
|
||||||
-t "git.garvis.dev/dmg/minecraft-account-manager:${VERSION}" \
|
-t "dmgarvis/minecraft-account-manager:${VERSION}" \
|
||||||
.
|
.
|
||||||
docker push "git.garvis.dev/dmg/minecraft-account-manager:${VERSION}"
|
docker push "dmgarvis/minecraft-account-manager:${VERSION}"
|
||||||
|
|
||||||
- name: Build and push Discord bot image
|
- name: Build and push Discord bot image
|
||||||
if: steps.release.outputs.created == 'true'
|
if: steps.release.outputs.created == 'true'
|
||||||
@@ -142,9 +141,9 @@ jobs:
|
|||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
--target bot \
|
--target bot \
|
||||||
--build-arg VERSION="$VERSION" \
|
--build-arg VERSION="$VERSION" \
|
||||||
-t "git.garvis.dev/dmg/minecraft-account-manager-bot:${VERSION}" \
|
-t "dmgarvis/minecraft-account-manager-bot:${VERSION}" \
|
||||||
.
|
.
|
||||||
docker push "git.garvis.dev/dmg/minecraft-account-manager-bot:${VERSION}"
|
docker push "dmgarvis/minecraft-account-manager-bot:${VERSION}"
|
||||||
|
|
||||||
- name: Build and push migration image
|
- name: Build and push migration image
|
||||||
if: steps.release.outputs.created == 'true'
|
if: steps.release.outputs.created == 'true'
|
||||||
@@ -155,9 +154,9 @@ jobs:
|
|||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
--target migrate \
|
--target migrate \
|
||||||
--build-arg VERSION="$VERSION" \
|
--build-arg VERSION="$VERSION" \
|
||||||
-t "git.garvis.dev/dmg/minecraft-account-manager-migrate:${VERSION}" \
|
-t "dmgarvis/minecraft-account-manager-migrate:${VERSION}" \
|
||||||
.
|
.
|
||||||
docker push "git.garvis.dev/dmg/minecraft-account-manager-migrate:${VERSION}"
|
docker push "dmgarvis/minecraft-account-manager-migrate:${VERSION}"
|
||||||
|
|
||||||
- name: Create Gitea release and upload Velocity JAR
|
- name: Create Gitea release and upload Velocity JAR
|
||||||
if: steps.release.outputs.created == 'true'
|
if: steps.release.outputs.created == 'true'
|
||||||
|
|||||||
Reference in New Issue
Block a user