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.
2 parents 7c56fc9 + 72aafae commit 2648e76Copy full SHA for 2648e76
.github/workflows/docker-image.yml
@@ -7,13 +7,25 @@ on:
7
- '**.md'
8
pull_request:
9
branches: [ "**" ]
10
-jobs:
11
12
- build:
+permissions:
+ packages: write
13
14
+jobs:
15
+ build:
16
runs-on: ubuntu-latest
17
18
steps:
19
- uses: actions/checkout@v4
20
- name: Build the Docker image
21
run: docker build . --file Dockerfile --tag vocard:latest
22
+
23
+ - name: Log in to GitHub Docker Registry
24
+ env:
25
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26
+ run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
27
28
+ - name: Push the Docker image
29
+ run: |
30
+ docker tag vocard:latest ghcr.io/chocomeow/vocard:latest # Ensure lowercase
31
+ docker push ghcr.io/chocomeow/vocard:latest # Ensure lowercase
0 commit comments