mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Merge pull request #137 from Gabisonfire/hotfix/notlikethis
Use the env up front and pass to output maybe?
This commit is contained in:
17
.github/workflows/base_image_workflow.yaml
vendored
17
.github/workflows/base_image_workflow.yaml
vendored
@@ -10,13 +10,24 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
env:
|
||||||
|
CONTEXT: ${{ inputs.CONTEXT }}
|
||||||
|
IMAGE_NAME: ${{ inputs.IMAGE_NAME }}
|
||||||
|
PLATFORMS: linux/amd64,linux/arm64
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
set-vars:
|
set-vars:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setting variables
|
||||||
|
run: |
|
||||||
|
echo "CONTEXT=${{ env.CONTEXT }}
|
||||||
|
echo "IMAGE_NAME=${{ env.IMAGE_NAME }}
|
||||||
|
echo "PLATFORMS=${{ env.PLATFORMS }}"
|
||||||
outputs:
|
outputs:
|
||||||
CONTEXT: ${{ inputs.CONTEXT }}
|
CONTEXT: ${{ env.CONTEXT }}
|
||||||
IMAGE_NAME: ${{ inputs.IMAGE_NAME }}
|
IMAGE_NAME: ${{ env.IMAGE_NAME }}
|
||||||
PLATFORMS: 'linux/amd64,linux/arm64'
|
PLATFORMS: ${{ env.PLATFORMS }}
|
||||||
|
|
||||||
build-and-push-images:
|
build-and-push-images:
|
||||||
needs: set-vars
|
needs: set-vars
|
||||||
|
|||||||
Reference in New Issue
Block a user