Skip to content

Commit 2bd321b

Browse files
authored
ci: build and push docker image to ghcr
1 parent df795dd commit 2bd321b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,17 @@ jobs:
100100
git add -A
101101
git commit -am 'Update build'
102102
git push -v
103+
publish-docker-image:
104+
runs-on: ubuntu-latest
105+
steps:
106+
- uses: actions/checkout@v2
107+
- name: Login to GitHub Container Registry
108+
uses: docker/login-action@v1
109+
with:
110+
registry: ghcr.io
111+
username: ${{ github.actor }}
112+
password: ${{ secrets.GITHUB_TOKEN }}
113+
- name: Build and push Docker image to the GHCR
114+
run: |
115+
docker build . --tag ghcr.io/gbdev/pandocs:latest
116+
docker push ghcr.io/gbdev/pandocs:latest

0 commit comments

Comments
 (0)