Skip to content

Commit 2648e76

Browse files
committed
Merge branch 'main' into beta
2 parents 7c56fc9 + 72aafae commit 2648e76

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/docker-image.yml

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

12-
build:
11+
permissions:
12+
packages: write
1313

14+
jobs:
15+
build:
1416
runs-on: ubuntu-latest
1517

1618
steps:
1719
- uses: actions/checkout@v4
1820
- name: Build the Docker image
1921
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

Comments
 (0)