From e1f2ef939e00507a50114e33e40a32155cd045a2 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 1 Feb 2024 12:13:22 +0900 Subject: [PATCH] Add composite action push_image --- .github/actions/push_image/action.yml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/actions/push_image/action.yml diff --git a/.github/actions/push_image/action.yml b/.github/actions/push_image/action.yml new file mode 100644 index 00000000..f54f3609 --- /dev/null +++ b/.github/actions/push_image/action.yml @@ -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 \ No newline at end of file