⬆️ updated to Meteor.js version 3.5.1 incl. package dependencies #356
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
| on: | |
| push: | |
| branches: | |
| - master | |
| name: Docker build | |
| jobs: | |
| release: | |
| name: Build and Push to Docker Hub | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Autotag | |
| id: autotag | |
| uses: jaywcjlove/create-tag-action@v2.3.0 | |
| env: | |
| token: ${{ github.token }} | |
| with: | |
| package-path: ./package.json | |
| release: true | |
| body: ${{ github.event.head_commit.message }} | |
| - name: Create Release | |
| # if: steps.autotag.outputs.successful == 'true' | |
| uses: softprops/action-gh-release@v3.0.0 | |
| with: | |
| token: ${{ github.token }} | |
| tag_name: ${{steps.autotag.outputs.version}} | |
| body: ${{ github.event.head_commit.message }} | |
| draft: false | |
| prerelease: false | |
| make_latest: true | |
| - name: Free disk space | |
| # if: steps.autotag.outputs.successful == 'true' | |
| run: curl -fsSL https://raw.githubusercontent.com/kou/arrow/e49d8ae15583ceff03237571569099a6ad62be32/ci/scripts/util_free_space.sh | bash | |
| - name: Set up QEMU | |
| # if: steps.autotag.outputs.successful == 'true' | |
| uses: docker/setup-qemu-action@v4.1.0 | |
| - name: Set up Docker Buildx | |
| # if: steps.autotag.outputs.successful == 'true' | |
| uses: docker/setup-buildx-action@v4.1.0 | |
| - name: Login to Docker Hub (kromit) | |
| # if: steps.autotag.outputs.successful == 'true' | |
| uses: docker/login-action@v4.2.0 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push to kromit | |
| # if: steps.autotag.outputs.successful == 'true' | |
| uses: docker/build-push-action@v7.2.0 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: kromit/titra:latest, kromit/titra:${{steps.autotag.outputs.version}} | |
| # Cache the build layers to GitHub's cache | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Login to Docker Hub (titraio) | |
| # if: steps.autotag.outputs.successful == 'true' | |
| uses: docker/login-action@v4.2.0 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME_TITRAIO }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN_TITRAIO }} | |
| - name: Build and push to titraio | |
| # if: steps.autotag.outputs.successful == 'true' | |
| uses: docker/build-push-action@v7.2.0 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: titraio/titra:latest, titraio/titra:${{steps.autotag.outputs.version}} | |
| # Reuse the build layers from the GitHub cache | |
| cache-from: type=gha |