File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
jobs :
7
7
push_to_registry :
8
- name : Push Docker image to Docker Hub
8
+ name : Push Docker image to Github Registry
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- name : Check out the repo
17
17
- name : Set up Docker Buildx
18
18
uses : docker/setup-buildx-action@v1
19
19
20
- - name : Login to GitHub Container Registry
20
+ - name : Login to Container Registry
21
21
uses : docker/login-action@v2
22
22
with :
23
23
registry : ghcr.io
Original file line number Diff line number Diff line change 15
15
- name : Set up Docker Buildx
16
16
uses : docker/setup-buildx-action@v1
17
17
18
+ - name : Login to Container Registry
19
+ uses : docker/login-action@v2
20
+ with :
21
+ registry : ghcr.io
22
+ username : ${{ github.repository_owner }}
23
+ password : ${{ secrets.GITHUB_TOKEN }}
24
+
18
25
- name : Build and push
19
26
id : docker_build
20
27
uses : docker/build-push-action@v2
21
28
with :
22
- push : false
29
+ push : true
30
+ tags : |
31
+ ghcr.io/babbel/ruru-lambda:latest
32
+ ghcr.io/babbel/ruru-lambda:build-ruby2.7
33
+ ghcr.io/babbel/ruru-lambda:${{ github.event.release.tag_name }}
You can’t perform that action at this time.
0 commit comments