Skip to content

Commit

Permalink
Add composite action build_image
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 1, 2024
1 parent 5072d99 commit 0e45eaa
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/actions/build_image/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: build_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: ''
target:
required: false
default: ruby
latest_tag:
required: false
default: 'false'
runs:
using: composite
steps:
- name: Build docker image
run: |-
rake docker:build 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 }} \
target=${{ inputs.target }} \
latest_tag=${{ inputs.latest_tag }}
shell: bash
- name: List images
run: docker images
shell: bash

0 comments on commit 0e45eaa

Please sign in to comment.