Skip to content

Commit d84079d

Browse files
authored
Create docker-image.yml
1 parent 94c8290 commit d84079d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Docker Image CI
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Build the Docker image
13+
run: docker build . --file Dockerfile --tag ghcr.io/obengine/obidog:${{ github.event.release.tag_name }}
14+
- name: Login to GHCR
15+
run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u AngryAubergine --password-stdin
16+
- name: Upload to GHCR
17+
run: docker push ghcr.io/obengine/obidog:${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)