-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
65 additions
and
100 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: docker-build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
# Docker build for amd64 | ||
build_amd64: | ||
name: Docker Build - amd64 | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
concurrency: | ||
group: ${{ github.ref }}-amd64 | ||
cancel-in-progress: true | ||
steps: | ||
- uses: dasch-swiss/sipi/.github/actions/checkout@main | ||
with: | ||
DASCHBOT_PAT: ${{ secrets.DASCHBOT_PAT }} | ||
- uses: dasch-swiss/sipi/.github/actions/setup-python@main | ||
- run: make install-requirements | ||
- uses: docker/setup-buildx-action@v3 | ||
- uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
- run: make docker-test-build-amd64 # two stage build, where test is run in the first stage | ||
- run: make test-smoke-ci | ||
|
||
# Docker build for aarch64 | ||
build_aarch64: | ||
name: Docker Build - aarch64 | ||
runs-on: buildjet-4vcpu-ubuntu-2204-arm | ||
concurrency: | ||
group: ${{ github.ref }}-aarch64 | ||
cancel-in-progress: true | ||
steps: | ||
- uses: dasch-swiss/sipi/.github/actions/checkout@main | ||
with: | ||
DASCHBOT_PAT: ${{ secrets.DASCHBOT_PAT }} | ||
- uses: dasch-swiss/sipi/.github/actions/setup-python@main | ||
- run: make install-requirements | ||
- uses: docker/setup-buildx-action@v3 | ||
- uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
- run: make docker-test-build-aarch64 # two stage build, where test is run in the first stage | ||
- run: make test-smoke-ci | ||
|
||
# build documentation | ||
build_docs: | ||
name: Build docs testrun | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dasch-swiss/sipi/.github/actions/checkout@main | ||
with: | ||
DASCHBOT_PAT: ${{ secrets.DASCHBOT_PAT }} | ||
- uses: dasch-swiss/sipi/.github/actions/setup-python@main | ||
- run: make docs-install-requirements | ||
- run: make docs-build |
This file was deleted.
Oops, something went wrong.
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