See if this works..

This commit is contained in:
Kokomo123
2024-08-22 17:18:32 -04:00
parent 5ec8e31615
commit 340945a77d

View File

@@ -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