Attempt to fix build failures

This commit is contained in:
Matthew Penner 2020-12-15 09:04:56 -07:00
parent d49cf0a77f
commit dba8b58261

View file

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