release: v0.2.5 #35
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: Publish | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| workflow_dispatch: | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Log in to Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
| tags: | | |
| type=ref,event=branch | |
| type=ref,event=tag | |
| type=sha,prefix= | |
| type=raw,value=latest,enable={{is_default_branch}} | |
| - name: Build and push operator | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| - name: Extract s3fs metadata | |
| id: s3fs-meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/s3fs | |
| tags: | | |
| type=ref,event=tag | |
| type=raw,value=latest,enable=${{ github.ref_type == 'tag' || github.ref == 'refs/heads/main' }} | |
| type=sha,prefix= | |
| - name: Build and push s3fs | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: docker/s3fs | |
| push: true | |
| tags: ${{ steps.s3fs-meta.outputs.tags }} | |
| labels: ${{ steps.s3fs-meta.outputs.labels }} | |
| - name: Notify release result | |
| if: always() && startsWith(github.ref, 'refs/tags/v') | |
| uses: marimo-team/internal-gh-actions/release-notification@main | |
| with: | |
| status: ${{ job.status }} | |
| slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_RELEASES }} | |
| artifact-url: "https://github.com/${{ github.repository }}/pkgs/container/marimo-operator" |