improvements to AI understanding of notes and tasks #15
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: Docker Publish | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Extract Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: sottey/scoli | |
| tags: | | |
| type=ref,event=tag | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=semver,pattern={{major}} | |
| type=raw,value=latest | |
| - name: Compute build metadata | |
| id: buildmeta | |
| run: | | |
| TAG="${GITHUB_REF_NAME}" | |
| DOCKER_TAG="${TAG#v}" | |
| COMMIT_SHA="$(git rev-parse --short=7 HEAD)" | |
| echo "git_tag=${TAG}" >> "$GITHUB_OUTPUT" | |
| echo "docker_tag=${DOCKER_TAG}" >> "$GITHUB_OUTPUT" | |
| echo "commit_sha=${COMMIT_SHA}" >> "$GITHUB_OUTPUT" | |
| - name: Build and push | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| build-args: | | |
| BUILD_GIT_TAG=${{ steps.buildmeta.outputs.git_tag }} | |
| BUILD_DOCKER_TAG=${{ steps.buildmeta.outputs.docker_tag }} | |
| BUILD_COMMIT_SHA=${{ steps.buildmeta.outputs.commit_sha }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |