Skip to content

Commit 9f7ac3d

Browse files
committed
first attempt to push to github container registry
1 parent 6a68f41 commit 9f7ac3d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/docker.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,25 @@ name: Docker
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [ "**" ]
66
pull_request:
77
branches: [ "main" ]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- name: Login to Github registry
14+
uses: docker/login-action@v2
15+
with:
16+
registry: ghcr.io
17+
username: ${{ github.actor }}
18+
password: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Checkout code
20+
uses: actions/checkout@v4
1421
- name: Build Docker image
15-
run: docker build . --file Dockerfile --tag journal-sdk:$(date +%s)
22+
run: |
23+
docker build . --file Dockerfile --tag journal-sdk:$(date +%s)
24+
- name: Push Docker image
25+
run: |
26+
docker push ghcr.io/${{ github.repository }}/journal-sdk:latest

0 commit comments

Comments
 (0)