-
Notifications
You must be signed in to change notification settings - Fork 27
34 lines (28 loc) · 1.03 KB
/
publish.yaml
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
name: Publish images to Docker Hub
on:
push:
branches: master
env:
DH_USER: lalanza808
jobs:
publish_images:
runs-on: ubuntu-latest
name: Publish selected Docker image to Dockerhub
if: contains(github.event.head_commit.message, 'release(')
steps:
- name: Authenticate to Dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and push new nodemapper image
if: contains(github.event.head_commit.message, 'release(nodemapper)')
run: bash release.sh nodemapper
- name: Build and push new monerod image
if: contains(github.event.head_commit.message, 'release(monerod)')
run: bash release.sh monerod
- name: Build and push new exporter image
if: contains(github.event.head_commit.message, 'release(exporter)')
run: bash release.sh exporter