Skip to content

Commit

Permalink
CI pipeline job for building build-su2-asan.
Browse files Browse the repository at this point in the history
  • Loading branch information
jblueh committed Mar 20, 2024
1 parent 731540a commit 2ded891
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-image-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,35 @@ jobs:
run: docker buildx imagetools create -t ghcr.io/${{ github.repository_owner }}/su2/build-su2-tsan:${{ needs.date-tag.outputs.date_tag }} ghcr.io/${{ github.repository_owner }}/su2/build-su2-tsan-amd64:${{ needs.date-tag.outputs.date_tag }}
# ghcr.io/${{ github.repository_owner }}/su2/build-su2-tsan-arm64:${{ needs.date-tag.outputs.date_tag }}

build-su2-asan:
needs: [date-tag, build-su2]
if: ${{ always() && !(contains(needs.*.result, 'failure')) }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Github Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Buildx Create
run: docker buildx create --use

- name: Build and push build-su2-asan
run: docker buildx build --platform=linux/amd64 --platform=linux/arm64 --build-arg BASE_IMAGE=ghcr.io/${{ github.repository_owner }}/su2/build-su2:${{ needs.date-tag.outputs.date_tag }} -t ghcr.io/${{ github.repository_owner }}/su2/build-su2-asan:${{ needs.date-tag.outputs.date_tag }} --push --file ./build/Dockerfile.asan ./build/

test-su2:
needs: [date-tag, build-su2, build-su2-tsan]
if: ${{ always() && !(contains(needs.*.result, 'failure')) }}
Expand Down

0 comments on commit 2ded891

Please sign in to comment.