more rigid keyword parsing #1379
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: docker | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: docker publish | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: blockexchange/blockexchange | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
tag_names: true | |
cache: true | |
- name: 📧 Discord success notification | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} | |
uses: Ilshidur/[email protected] | |
with: | |
args: '☑️ Build complete for commit `${{ github.sha }}`' | |
- name: 📧 Discord failure notification | |
if: failure() | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} | |
uses: Ilshidur/[email protected] | |
with: | |
args: '🚫 Build failed for commit `${{ github.sha }}`' | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@v3 | |
with: | |
token: ${{ secrets.REPO_ACCESS_TOKEN }} | |
repository: blockexchange/blockexchange.minetest.ch | |
event-type: deploy |