Skip to content

Commit

Permalink
tmp disable aarm build. gs wont build for it
Browse files Browse the repository at this point in the history
fix path
  • Loading branch information
orangewolf committed Oct 13, 2022
1 parent 13c7270 commit df67de6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/docker-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
# platforms: linux/amd64,linux/arm64
tags: amazon-linux-sharp-layer:dev
# this action should be replaced with load: true in the docker_build action, see https://github.com/docker/buildx/issues/59
- name: Load Docker images
Expand All @@ -52,20 +53,20 @@ jobs:
# docker buildx build --load --platform linux/arm64 -t amazon-linux-sharp-layer:dev-aarch64 . &&
echo 'done'
- name: Copy artifacts x86_64
run: docker run --platform linux/amd64 -v "${{ github.workspace }}/dist":/dist-x86_64 amazon-linux-sharp-layer:dev-x86_64
run: docker run --platform linux/amd64 -v "${{ github.workspace }}/dist-x86_64":/dist amazon-linux-sharp-layer:dev-x86_64
# - name: Copy artifacts aarch64
# run: docker run --platform linux/arm64 -v "${{ github.workspace }}/dist":/dist-aarch64 amazon-linux-sharp-layer:dev-aarch64
# run: docker run --platform linux/arm64 -v "${{ github.workspace }}/dist-aarch64":/dist amazon-linux-sharp-layer:dev-aarch64
- name: Upload artifacts x86_64
uses: actions/upload-artifact@v2
with:
name: sharp-lambda-layer.x86_64.zip
path: dist-x86_64/sharp-layer.x86_64.zip
path: dist-x86_64/sharp-lambda-layer.zip
if-no-files-found: error
# - name: Upload artifacts aarch64
# uses: actions/upload-artifact@v2
# with:
# name: sharp-lambda-layer.aarch64.zip
# path: dist-aarch64/sharp-layer.zip
# path: dist-aarch64/sharp-lambda-layer.zip
# if-no-files-found: error
- name: Create release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.vars.outputs.release_exists == 'false' }}
Expand All @@ -85,7 +86,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/sharp-layer.x86_64.zip
asset_path: dist-x86_64/sharp-lambda-layer.zip
asset_name: sharp-lambda-layer.x86_64.zip
asset_content_type: application/zip
# - name: Upload release asset aarch64
Expand Down

0 comments on commit df67de6

Please sign in to comment.