-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.04 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Tabroom Mason Publish
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CI: true
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Docker Tag by commit
id: get_version
run: echo COMMIT_VERSION=$(echo $GITHUB_SHA) >> $GITHUB_ENV
- name: Publish Tabroom Mason image to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: nsda/tabroom-mason
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
registry: registry.speechanddebate.org
tags: "${{ env.COMMIT_VERSION }}"
- name: If image was published change icon
if: success()
run: echo "SLACK_ICON=:white_check_mark:" >> $GITHUB_ENV
- name: Send slack notification
uses: speechanddebate/action-slack-notify@master