Skip to content

Commit d1e02c5

Browse files
committed
Update docker-image.yml
1 parent 92d1a93 commit d1e02c5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/docker-image.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,21 @@ on:
77
- '**.md'
88
pull_request:
99
branches: [ "**" ]
10-
jobs:
1110

11+
jobs:
1212
build:
13-
1413
runs-on: ubuntu-latest
1514

1615
steps:
1716
- uses: actions/checkout@v4
1817
- name: Build the Docker image
1918
run: docker build . --file Dockerfile --tag vocard:latest
19+
20+
- name: Log in to GitHub Docker Registry
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
24+
25+
- name: Push the Docker image
26+
run: docker tag vocard:latest ghcr.io/${{ github.repository }}/vocard:latest
27+
- run: docker push ghcr.io/${{ github.repository }}/vocard:latest

0 commit comments

Comments
 (0)