Fix github action branch specifications. #3
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: Build and push chimbuko-spack-env image | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| build-and-push-image: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out this repo | |
| uses: actions/checkout@v5 | |
| with: | |
| path: 'ChimbukoVisualizationII' | |
| - name: Check out the PerformanceAnalysis repo | |
| uses: actions/checkout@v5 | |
| with: | |
| path: 'PerformanceAnalysis' | |
| ref: 'ckelly_develop' | |
| repository: 'CODARcode/PerformanceAnalysis' | |
| - name: Login to GHCR | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| # note that the calling workflow must set `secrets: inherit` | |
| username: '${{ github.actor }}' | |
| password: '${{ secrets.GITHUB_TOKEN }}' | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build PerformanceAnalysis image | |
| shell: bash | |
| run: | | |
| cd PerformanceAnalysis/docker/ubuntu18.04/openmpi4.0.4/all_spack | |
| docker build \ | |
| -f Dockerfile.spack_env \ | |
| -t chimbuko/chimbuko-spack-env:ubuntu18.04 \ | |
| . | |
| - name: Push PerformanceAnalysis image | |
| shell: bash | |
| run: | | |
| export OWNER_LOWER="$(\ | |
| echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]'\ | |
| )" | |
| docker image tag chimbuko/chimbuko-spack-env:ubuntu18.04 \ | |
| ghcr.io/$OWNER_LOWER/chimbuko/chimbuko-spack-env:ubuntu18.04 | |
| docker image push ghcr.io/$OWNER_LOWER/chimbuko/chimbuko-spack-env:ubuntu18.04 |