Merge branch 'staging' #71
This file contains 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: build latest image | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '!*' | |
concurrency: | |
group: build-${{ github.ref }} | |
jobs: | |
retag: | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
steps: | |
- uses: joelwmale/webhook-action@2.1.0 | |
with: | |
url: https://mstdn.plusminus.io/api/v1/statuses | |
headers: '{"Authorization": "Bearer ${{ secrets.MASTODON_TOKEN }}"}' | |
body: '{"status": ":loading: 𝙩𝙖𝙜 𝙧𝙤𝙩𝙖𝙩𝙚 𝙨𝙩𝙖𝙧𝙩\n\ndocker image:\nplusminusio/mastodon:staging 👉 plusminusio/mastodon:latest\ndocker image:\nplusminusio/mastodon:staging-arm64 👉 plusminusio/mastodon:latest-arm64\nworkflow: ${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}"}' | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: docker/login-action@v2 | |
with: | |
username: mohemohe | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- uses: docker/build-push-action@v4 | |
with: | |
push: true | |
file: latest.Dockerfile | |
tags: plusminusio/mastodon:latest | |
- uses: docker/build-push-action@v4 | |
with: | |
push: true | |
file: latest-arm64.Dockerfile | |
tags: plusminusio/mastodon:latest-arm64 | |
- if: success() | |
uses: joelwmale/webhook-action@2.1.0 | |
with: | |
url: https://mstdn.plusminus.io/api/v1/statuses | |
headers: '{"Authorization": "Bearer ${{ secrets.MASTODON_TOKEN }}"}' | |
body: '{"status": "☺️ 𝙩𝙖𝙜 𝙧𝙤𝙩𝙖𝙩𝙚 𝙨𝙪𝙘𝙘𝙚𝙨𝙨\n\ndocker image:\nplusminusio/mastodon:staging 👉 plusminusio/mastodon:latest\ndocker image:\nplusminusio/mastodon:staging-arm64 👉 plusminusio/mastodon:latest-arm64\nworkflow: ${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}"}' | |
- if: failure() | |
uses: joelwmale/webhook-action@2.1.0 | |
with: | |
url: https://mstdn.plusminus.io/api/v1/statuses | |
headers: '{"Authorization": "Bearer ${{ secrets.MASTODON_TOKEN }}"}' | |
body: '{"status": "😩 𝙩𝙖𝙜 𝙧𝙤𝙩𝙖𝙩𝙚 𝙛𝙖𝙞𝙡𝙪𝙧𝙚\n\ndocker image:\nplusminusio/mastodon:staging 👉 plusminusio/mastodon:latest\ndocker image:\nplusminusio/mastodon:staging-arm64 👉 plusminusio/mastodon:latest-arm64\nworkflow: ${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}"}' |