-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (29 loc) · 879 Bytes
/
deploy.yml
File metadata and controls
31 lines (29 loc) · 879 Bytes
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
name: Deploy
on:
push:
branches:
- main
paths-ignore:
- "README.md"
jobs:
push-to-ghcr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./build
push: true
tags: ghcr.io/dappnode/dappnode-announcements-bot:latest
# Tell the watchtower instance with the cert-api to pull its image
- name: Trigger cert-api webhook
run: |
curl -H "Authorization: Bearer ${{ secrets.DDNS_SERVER_PUSH_TOKEN }}" ${{ secrets.DDNS_SERVER_PUSH_URL }}