Skip to content

Commit e9b0880

Browse files
authored
Merge pull request #70 from ruby/push-ghcr
Add login with GHCR access token and push it
2 parents e065667 + 2dd5ee3 commit e9b0880

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/actions/push_image/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ runs:
2424
- name: Push docker image to rubylang
2525
run: |-
2626
echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
27+
echo $GHCR_ACCESS_TOKEN | docker login ghcr.io -u $GHCR_USER --password-stdin
2728
rake docker:push ruby_version=${{ inputs.ruby_version }} \
2829
ubuntu_version=${{ inputs.ubuntu_version }} \
2930
image_version_suffix=${{ inputs.image_version_suffix }} \

.github/workflows/nightly.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ jobs:
6262
ubuntu_version: "${{ env.ubuntu_version }}"
6363
tag_suffix: "${{ env.tag_suffix }}"
6464

65+
- uses: "./.github/actions/push_image"
66+
if: "${{ env.push }}"
67+
with:
68+
registry_name: 'ghcr.io/ruby'
69+
ruby_version: "${{ env.ruby_version }}"
70+
nightly: "${{ env.nightly }}"
71+
image_version_suffix: "${{ env.image_version_suffix }}${{ env.dev_suffix }}"
72+
ubuntu_version: "${{ env.ubuntu_version }}"
73+
tag_suffix: "${{ env.tag_suffix }}"
74+
6575
- uses: "./.github/actions/push_image_by_tag"
6676
if: "${{ env.push_tags }}"
6777
with:

0 commit comments

Comments
 (0)