Skip to content

Commit

Permalink
Merge pull request #70 from ruby/push-ghcr
Browse files Browse the repository at this point in the history
Add login with GHCR access token and push it
  • Loading branch information
hsbt authored Feb 2, 2024
2 parents e065667 + 2dd5ee3 commit e9b0880
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/push_image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ runs:
- name: Push docker image to rubylang
run: |-
echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
echo $GHCR_ACCESS_TOKEN | docker login ghcr.io -u $GHCR_USER --password-stdin
rake docker:push ruby_version=${{ inputs.ruby_version }} \
ubuntu_version=${{ inputs.ubuntu_version }} \
image_version_suffix=${{ inputs.image_version_suffix }} \
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ jobs:
ubuntu_version: "${{ env.ubuntu_version }}"
tag_suffix: "${{ env.tag_suffix }}"

- uses: "./.github/actions/push_image"
if: "${{ env.push }}"
with:
registry_name: 'ghcr.io/ruby'
ruby_version: "${{ env.ruby_version }}"
nightly: "${{ env.nightly }}"
image_version_suffix: "${{ env.image_version_suffix }}${{ env.dev_suffix }}"
ubuntu_version: "${{ env.ubuntu_version }}"
tag_suffix: "${{ env.tag_suffix }}"

- uses: "./.github/actions/push_image_by_tag"
if: "${{ env.push_tags }}"
with:
Expand Down

0 comments on commit e9b0880

Please sign in to comment.