File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66jobs :
77 push_to_registry :
8- name : Push Docker image to Docker Hub
8+ name : Push Docker image to Github Registry
99 runs-on : ubuntu-latest
1010 steps :
1111 - name : Check out the repo
1717 - name : Set up Docker Buildx
1818 uses : docker/setup-buildx-action@v1
1919
20- - name : Login to GitHub Container Registry
20+ - name : Login to Container Registry
2121 uses : docker/login-action@v2
2222 with :
2323 registry : ghcr.io
Original file line number Diff line number Diff line change 1515 - name : Set up Docker Buildx
1616 uses : docker/setup-buildx-action@v1
1717
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+
1825 - name : Build and push
1926 id : docker_build
2027 uses : docker/build-push-action@v2
2128 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