Skip to content

Commit 4a6f9b1

Browse files
committed
new workflow
1 parent 510b82c commit 4a6f9b1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Docker image CI for GHCR
2+
3+
on: push
4+
5+
jobs:
6+
build_and_publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Build and push the image
11+
run: |
12+
docker login --username z0tedd --password ${{ secrets.GH_PAT }} ghcr.io
13+
docker build . --tag ghcr.io/z0tedd/cpp-endpoint-example:latest
14+
docker push ghcr.io/z0tedd/cpp-endpoint-example:latest

0 commit comments

Comments
 (0)