Skip to content

Commit 238a3e9

Browse files
committed
add ghcr workflow
1 parent 74ffa27 commit 238a3e9

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/deploy-ghcr.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy Images to GHCR
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
push-image:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
packages: write
14+
steps:
15+
- name: "Checkout GitHub Action"
16+
uses: actions/checkout@v4
17+
18+
- name: "Login to GitHub Container Registry"
19+
uses: docker/login-action@v3
20+
with:
21+
registry: ghcr.io
22+
username: ${{github.actor}}
23+
password: ${{secrets.GITHUB_TOKEN}}
24+
25+
- name: "Build Image"
26+
run: |
27+
docker build . --tag ghcr.io/fortnet/bordmonitor:latest
28+
docker push ghcr.io/fortnet/bordmonitor:latest
29+
30+
# - name: "Update instance"
31+
# run: |
32+
# curl -X POST ${{ secrets.PORTAINER_WEBHOOK_URL }}

0 commit comments

Comments
 (0)