Attempt to fix build failures

This commit is contained in:
Matthew Penner 2020-12-15 10:10:17 -07:00
parent 6ea7a34ef1
commit cd27be290c

View file

@ -42,31 +42,19 @@ jobs:
version: v0.5.1 version: v0.5.1
buildkitd-flags: --debug buildkitd-flags: --debug
# - name: Registry Authentication - name: Login to GitHub Container Registry
# run: | uses: docker/login-action@v1
# echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
# - name: Build Image - name: Build
# env:
# IMAGE_ID: docker.pkg.github.com/${{ github.repository }}/${{ matrix.image }}:latest
# run: |
# docker buildx build --push --platform=linux/amd64 --tag=$IMAGE_ID ./${{ matrix.image }}
- name: Set up containerd
uses: crazy-max/ghaction-setup-containerd@v1
- name: Build Docker image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: ./alpine context: ./alpine
file: ./alpine/Dockerfile tags: ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}:latest
platforms: linux/amd64 load: true
tags: docker.pkg.github.com/${{ github.repository }}/${{ matrix.image }}:latest
outputs: type=oci,dest=/tmp/image.tar
- name: Import image in containerd - name: Push
run: | run: docker push ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}:latest
sudo ctr i import --base-name docker.io/user/app --digests --all-platforms /tmp/image.tar
- name: Push image with containerd
run: |
sudo ctr --debug i push --user "${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}" docker.pkg.github.com/${{ github.repository }}/${{ matrix.image }}:latest