ci: adds a notice banner (#422) #157
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: Publish dev | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| jobs: | |
| compute-docker-tag: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| docker_tag: ${{ steps.compute-tag.outputs.docker_tag }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Compute new docker image tag | |
| id: compute-tag | |
| run: | | |
| echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" | |
| echo "branch=$(echo ${GITHUB_REF_NAME})" >> "$GITHUB_ENV" | |
| echo "docker_tag=$(echo ${GITHUB_REF_NAME})-$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_OUTPUT" | |
| publish-image: | |
| needs: compute-docker-tag | |
| uses: AllenNeuralDynamics/.github/.github/workflows/release-publish-docker-image.yml@main | |
| with: | |
| default-branch: dev | |
| docker-tag: ${{ needs.compute-docker-tag.outputs.docker_tag }} | |
| secrets: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} |