mirror of
https://github.com/5etools-mirror-2/5etools-img.git
synced 2025-12-16 14:03:21 -06:00
See if this works..
This commit is contained in:
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@@ -67,14 +67,19 @@ jobs:
|
|||||||
- name: Log In to Registry
|
- name: Log In to Registry
|
||||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Build and push the docker image
|
- name: Build the docker image
|
||||||
uses: docker/build-push-action@master
|
run: |
|
||||||
with:
|
docker build -t $IMAGE_NAME
|
||||||
context: .
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
- name: Push image
|
||||||
platforms: linux/arm64,linux/amd64
|
run: |
|
||||||
push: true
|
echo IMAGE_ID=$IMAGE_ID
|
||||||
tags: ghcr.io/kokomo123/5etools-img:latest
|
echo IMAGE_VERSION=$IMAGE_VERSION
|
||||||
#labels: ${{ steps.meta.outputs.labels }}
|
docker tag $IMAGE_NAME $IMAGE_ID:$IMAGE_VERSION
|
||||||
|
# Always tag latest when pushing a tag, as we don't expect to ever merge old tags
|
||||||
|
[[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest
|
||||||
|
docker push $IMAGE_ID:$IMAGE_VERSION
|
||||||
|
docker push $IMAGE_ID:latest
|
||||||
|
|
||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user