Merge remote-tracking branch 'ata/update-sd-reinsert' #2665
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
# See reference docs at | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
name: Default branch ci | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
ci: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Clone the repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
submodules: recursive | |
- name: Check if container should be published | |
id: checks | |
run: echo container-published=$(./.ci/check-container-version-published) >> $GITHUB_OUTPUT | |
- name: Build container | |
if: steps.checks.outputs.container-published == 'false' | |
run: ./.ci/build-container | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Publish container | |
if: steps.checks.outputs.container-published == 'false' | |
run: ./.ci/publish-container | |
- name: Pull CI container image | |
if: steps.checks.outputs.container-published == 'true' | |
run: ./.ci/pull-container | |
- name: Run CI in container | |
run: ./.ci/run-container-ci ${{github.workspace}} ${{ github.event.before }} |