disable enable-shared on linux distros (#1229) #431
This file contains 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: Docker Image CI | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
docker-image: ['gerbil', 'gerbilxx'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: print out github context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- name: List of all Github Actions env vars | |
run: env | |
- name: Build the Docker image | |
run: make -C docker ${{ matrix.docker-image }} REPO=${{ github.repository }} BRANCH=${{ github.head_ref || github.ref_name }} | |
- name: Push to Docker Hub on Pushes to master | |
run: | | |
docker login -u gerbil -p ${{ secrets.DOCKER_TOKEN }} | |
docker push gerbil/${{ matrix.docker-image }}:$(uname -m)-master | |
docker manifest create gerbil/${{ matrix.docker-image }}:master --amend gerbil/gerbil:aarch64-master --amend gerbil/gerbil:x86_64-master | |
docker manifest push gerbil/${{ matrix.docker-image }}:master | |
if: github.event_name == 'push' |