Skip to content

Commit

Permalink
Add composite action push_image
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 1, 2024
1 parent 0e45eaa commit e1f2ef9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/actions/push_image/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: push_image
inputs:
ruby_version:
required: false
default: master
nightly:
required: false
default: false
image_version_suffix:
required: false
default: ''
ubuntu_version:
required: false
default: focal
tag_suffix:
required: false
default: ''
latest_tag:
required: false
default: 'false'
runs:
using: composite
steps:
- name: Push docker image to rubylang
run: |-
echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
rake docker:push ruby_version=${{ inputs.ruby_version }} \
ubuntu_version=${{ inputs.ubuntu_version }} \
image_version_suffix=${{ inputs.image_version_suffix }} \
${{ inputs.nightly }}nightly=yes${{ inputs.nightly }} \
tag_suffix=${{ inputs.tag_suffix }} \
latest_tag=${{ inputs.latest_tag }}
shell: bash

0 comments on commit e1f2ef9

Please sign in to comment.