[minor]multiarch support #49
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release CLI Base | |
on: | |
push: | |
branches-ignore: | |
- '**' | |
tags: | |
- '**' | |
jobs: | |
build-cli-base-amd64: | |
runs-on: ubuntu-latest | |
steps: | |
# 1. Setup | |
# ------------------------------------------------------------------------------------------- | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Initialise the build system | |
run: | | |
chmod u+x $GITHUB_WORKSPACE/build/bin/*.sh | |
$GITHUB_WORKSPACE/build/bin/initbuild.sh | |
source $GITHUB_WORKSPACE/build/bin/.functions.sh | |
# 2. Build and Publish CLI base container image | |
# ------------------------------------------------------------------------------------------- | |
- name: Build the docker image | |
run: | | |
python3 -m pip install docker-squash | |
$GITHUB_WORKSPACE/build/bin/docker-build.sh -n ibmmas -i cli-base | |
docker-squash --load-image --tag quay.io/ibmmas/cli-base:${{ env.DOCKER_TAG }} ibmmas/cli-base | |
docker tag ibmmas/cli-base quay.io/ibmmas/cli-base:latest | |
- name: Push the docker image | |
id: push_to_quay | |
run: | | |
docker images | |
docker login --username "${{ secrets.QUAYIO_USERNAME }}" --password "${{ secrets.QUAYIO_PASSWORD }}" quay.io | |
docker push quay.io/ibmmas/cli-base:${{ env.DOCKER_TAG }} | |
docker push quay.io/ibmmas/cli-base:latest |