Skip to content

Commit 2ded891

Browse files
committed
CI pipeline job for building build-su2-asan.
1 parent 731540a commit 2ded891

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/docker-image-upload.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,35 @@ jobs:
102102
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 }}
103103
# ghcr.io/${{ github.repository_owner }}/su2/build-su2-tsan-arm64:${{ needs.date-tag.outputs.date_tag }}
104104

105+
build-su2-asan:
106+
needs: [date-tag, build-su2]
107+
if: ${{ always() && !(contains(needs.*.result, 'failure')) }}
108+
runs-on: ubuntu-latest
109+
steps:
110+
- name: Checkout
111+
uses: actions/checkout@v3
112+
113+
- name: Set up QEMU
114+
uses: docker/setup-qemu-action@v2
115+
with:
116+
platforms: arm64
117+
118+
- name: Set up Docker Buildx
119+
uses: docker/setup-buildx-action@v2
120+
121+
- name: Login to Github Docker Registry
122+
uses: docker/login-action@v2
123+
with:
124+
registry: ghcr.io
125+
username: ${{ github.actor }}
126+
password: ${{ secrets.GITHUB_TOKEN }}
127+
128+
- name: Docker Buildx Create
129+
run: docker buildx create --use
130+
131+
- name: Build and push build-su2-asan
132+
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/
133+
105134
test-su2:
106135
needs: [date-tag, build-su2, build-su2-tsan]
107136
if: ${{ always() && !(contains(needs.*.result, 'failure')) }}

0 commit comments

Comments
 (0)