Move workflows into .github dir as required by spec #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build docker image to ensure all steps exist in the cache | |
on: | |
workflow_call: | |
inputs: | |
image-target: | |
type: string | |
outputs: | |
image-name: | |
description: 'The name of the created image' | |
value: ${{ jobs.build-docker-image.outputs.image-name }} | |
app-version: | |
value: ${{ jobs.build-docker-image.outputs.app-version }} | |
jobs: | |
build-docker-image: | |
name: Build docker image | |
runs-on: ubuntu-latest | |
outputs: | |
image-name: ${{ steps.build-docker-image.outputs.app-version }} | |
app-version: ${{ steps.get-app-version.outputs.app-version }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Get app version | |
id: get-app-version | |
uses: infoxchange/github-ci/actions/get-app-version | |
- name: Build docker image | |
id: build-docker-image | |
uses: infoxchange/github-ci/actions/setup-docker-image | |
with: | |
load-image: false | |
target: ${{ inputs.image-target }} | |
build-args: | | |
APP_VERSION=${{ steps.get-app-version.outputs.app-version }} |