Attempt to fix build failures
This commit is contained in:
parent
d49cf0a77f
commit
dba8b58261
1 changed files with 15 additions and 7 deletions
22
.github/workflows/docker-publish.yml
vendored
22
.github/workflows/docker-publish.yml
vendored
|
@ -42,16 +42,24 @@ jobs:
|
||||||
version: latest
|
version: latest
|
||||||
|
|
||||||
- name: Registry Authentication
|
- name: Registry Authentication
|
||||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
run: |
|
||||||
|
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
run: docker buildx build ./${{ matrix.image }} --tag ${{ matrix.image }} --platform linux/amd64,linux/arm64
|
env:
|
||||||
|
IMAGE_ID: docker.pkg.github.com/${{ github.repository }}/${{ matrix.image }}
|
||||||
- name: Push Image
|
|
||||||
run: |
|
run: |
|
||||||
IMAGE_NAME=${{ matrix.image }}
|
|
||||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
|
||||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||||
|
|
||||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
docker buildx build ./${{ matrix.image }} \
|
||||||
|
--tag docker.pkg.github.com/${{ github.repository }}/${{ matrix.image }} \
|
||||||
|
--platform linux/amd64,linux/arm64
|
||||||
|
|
||||||
|
- name: Push Image
|
||||||
|
env:
|
||||||
|
IMAGE_ID: docker.pkg.github.com/${{ github.repository }}/${{ matrix.image }}
|
||||||
|
run: |
|
||||||
|
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||||
|
|
||||||
|
docker tag $IMAGE_ID $IMAGE_ID:$VERSION
|
||||||
docker push $IMAGE_ID:$VERSION
|
docker push $IMAGE_ID:$VERSION
|
||||||
|
|
Loading…
Reference in a new issue