Fixing up for last time, with proper commands..

This commit is contained in:
Kokomo123
2024-08-22 18:02:30 -04:00
parent 18d17209b2
commit a970a6294a

View File

@@ -54,7 +54,12 @@ jobs:
echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV
# region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio # region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio
- name: Use QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@master uses: docker/setup-buildx-action@master
@@ -63,8 +68,12 @@ jobs:
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 the docker image - name: Build the docker image
run: | uses: docker/build-push-action@master
docker build --platform linux/amd64,linux/arm64 -t $IMAGE_NAME with:
context: .
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/arm64,linux/amd64
push: false
- name: Push image - name: Push image
run: | run: |