Skip to content

Commit

Permalink
Create different release for arm with mysql/mysql-server:8.0
Browse files Browse the repository at this point in the history
Signed-off-by: Ville Aikas <[email protected]>
  • Loading branch information
vaikas committed Jan 25, 2022
1 parent 6274540 commit 3e76595
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion config/trillian/mysql/300-mysql-trillian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ metadata:
app: mysql-trillian
spec:
containers:
- image: mysql/mysql-server:8.0
- image: mysql:8.0
name: mysql
env:
- name: MYSQL_ROOT_PASSWORD
Expand Down

0 comments on commit 3e76595

Please sign in to comment.