We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92d1a93 commit d1e02c5Copy full SHA for d1e02c5
.github/workflows/docker-image.yml
@@ -7,13 +7,21 @@ on:
7
- '**.md'
8
pull_request:
9
branches: [ "**" ]
10
-jobs:
11
+jobs:
12
build:
13
-
14
runs-on: ubuntu-latest
15
16
steps:
17
- uses: actions/checkout@v4
18
- name: Build the Docker image
19
run: docker build . --file Dockerfile --tag vocard:latest
+
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