Skip to content

Commit 6f53661

Browse files
committed
added deployment workflow
actual deployment not happening yet
1 parent 4efd620 commit 6f53661

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: deployment
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Log in to GitHub Container Registry
14+
uses: docker/login-action@v2
15+
with:
16+
registry: ghcr.io
17+
username: ${{ github.actor }}
18+
password: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- name: Build Docker image
21+
run: |
22+
docker build -t ghcr.io/${{ github.repository }}:latest .
23+
24+
- name: Push Docker image
25+
run: |
26+
docker push ghcr.io/${{ github.repository }}:latest
27+
28+
# not yet
29+
# - name: Trigger Watchtower Refresh
30+
# run: |
31+
# curl --fail -X POST https://watchtower.splitbrain.net/v1/update \
32+
# -H "Authorization: Bearer ${{ secrets.WATCHTOWER_HTTP_API_TOKEN }}"

0 commit comments

Comments
 (0)