Skip to content

Commit febbb8a

Browse files
committed
Push built image to GitHub Container Registry
1 parent 5866d23 commit febbb8a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,18 @@ jobs:
132132
username: ${{ secrets.DOCKER_USER }}
133133
password: ${{ secrets.DOCKER_PASS }}
134134

135+
- uses: docker/login-action@v3
136+
with:
137+
registry: ghcr.io
138+
username: ${{ secrets.GHCR_USER }}
139+
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
140+
135141
- name: Build and push latest image
136142
uses: docker/build-push-action@v6
137143
with:
138144
context: .
139145
file: Dockerfile.final
140146
push: true
141-
tags: docker.io/rubylang/all-ruby:latest
147+
tags: |
148+
docker.io/rubylang/all-ruby:latest
149+
ghcr.io/ruby/all-ruby:latest

0 commit comments

Comments
 (0)