aswf/ci-package-moonray:2023.4 #6266
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: Release | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| release: | |
| runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-22.04-8c-32g-300h') || 'ubuntu-latest' }} | |
| env: | |
| DOCKER_CLI_EXPERIMENTAL: enabled | |
| DOCKER_BUILDKIT: '1' | |
| CONAN_LOGIN_USERNAME: ${{ secrets.ARTIFACTORY_USER }} | |
| CONAN_PASSWORD: ${{ secrets.ARTIFACTORY_TOKEN }} | |
| GITHUB_REF_LOCAL: ${{ github.ref || format('{0}{1}', 'refs/tags/', github.event.release.tag_name) }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Activate Docker buildx | |
| uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0 | |
| with: | |
| # Use the docker driver for consistency with docker-builds.yml and local development. | |
| # All images are pushed to Docker Hub in this workflow so the image store sharing | |
| # behaviour difference between drivers has no practical effect here. | |
| driver: docker | |
| env: | |
| BUILDKIT_STEP_LOG_MAX_SIZE: 10485760 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| enable-cache: auto | |
| - name: Set up Python | |
| run: uv python install 3.10 3.10 3.10 | |
| - name: Install aswfdocker and dependencies | |
| run: uv sync --frozen | |
| - name: Login to DockerHub | |
| if: ${{ !contains(github.ref, '/ci-package') }} | |
| run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u aswfdocker --password-stdin | |
| - name: Build and Push | |
| run: | | |
| uv run aswfdocker \ | |
| --repo-uri $GITHUB_REPOSITORY \ | |
| --verbose \ | |
| build \ | |
| --full-name $GITHUB_REF_LOCAL \ | |
| --push YES | |
| - name: Update Docker Hub Description | |
| if: ${{ !contains(github.ref, '/ci-package') }} | |
| run: | | |
| uv run aswfdocker \ | |
| pushoverview \ | |
| --username aswfdocker \ | |
| --password ${{ secrets.DOCKERHUB_PASSWORD }} \ | |
| --full-name $GITHUB_REF_LOCAL |