Skip to content

Commit

Permalink
Merge pull request #27 from vaikas/fixes
Browse files Browse the repository at this point in the history
Use mysql-server since it has arm64 support also.
  • Loading branch information
vaikas committed Jan 25, 2022
2 parents eaa21c0 + 3e76595 commit 26cbd11
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ jobs:
# Build a big bundle of joy, this also produces SBOMs
ko resolve --tags $(basename "${{ github.ref }}" ),latest -BRf ./config --platform=all --image-refs imagerefs > release.yaml
# arm64 uses mysql/mysql-server but it doesn't seem to work correctly
# as is in github actions, because it wants to change the filesystem.
# TODO(vaikas): Find a way to use the same image, for now, hack and
# use different image for amd and arm until I sort it out.
# https://github.com/vaikas/sigstore-scaffolding/issues/28
sed -e 's@mysql:8.0@mysql/mysql-server:8.0@' /tmp/release.yaml > /tmp/release-arm.yaml
echo "Doing ko resolve for testdata"
# Build a big bundle of test joy, this also produces SBOMs
ko resolve --tags $(basename "${{ github.ref }}" ),latest -BRf ./testdata --platform=all --image-refs testimagerefs > testrelease.yaml
Expand All @@ -92,6 +99,16 @@ jobs:
asset_name: release.yaml
asset_content_type: text/plain

- name: Upload Core ARM Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_REPO_PAT }}
with:
upload_url: ${{ steps.get_release_url.outputs.upload_url }}
asset_path: ./src/github.com/${{ github.repository }}/release-arm.yaml
asset_name: release-arm.yaml
asset_content_type: text/plain

- name: Upload Test Asset
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 26cbd11

Please sign in to comment.