Skip to content

Commit 0c7e074

Browse files
committed
Don't rely on environment variables in action
1 parent 0966f2d commit 0c7e074

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

action.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,11 @@ inputs:
1313
description: 'Ccache directory'
1414
default: /github/workspace/.ccache
1515

16-
env:
17-
REGISTRY: ghcr.io
18-
IMAGE_NAME: duckdb/duckdb-wasm-ci-env
19-
2016
runs:
2117
using: 'composite'
2218
steps:
2319
- run: |-
24-
echo "IMAGE_TAG=$(cat ./TAG)" >> $GITHUB_ENV
25-
shell: bash
26-
27-
- run: |-
28-
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
20+
docker pull "ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)"
2921
shell: bash
3022
3123
- run: |-
@@ -38,6 +30,6 @@ runs:
3830
-e YARN_CACHE_FOLDER=/mnt/yarn_cache \
3931
-e CCACHE_DIR=/mnt/ccache \
4032
-e CCACHE_BASEDIR=/github/workspace \
41-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} \
33+
"ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)" \
4234
bash -c "${{ inputs.script }}"
4335
shell: bash

0 commit comments

Comments
 (0)