Skip to content

Commit eb81675

Browse files
authored
set env vars in run block (#2122)
1 parent c1c5047 commit eb81675

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/publish-runtime.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,10 @@ jobs:
236236
username: ${{ secrets.DOCKERHUB_USERNAME }}
237237
password: ${{ secrets.DOCKERHUB_TOKEN }}
238238
- name: Publish runtime docker image
239-
env:
240-
DOCKER_IMAGE: purestake/moonbeam
241-
DOCKER_TAG: ${{ github.event.inputs.to }}
242-
GITHUB_TAG: ${{ github.event.inputs.to }}
243239
run: |
244-
COMMIT=`git rev-list -n 1 '${GITHUB_TAG}'`
240+
DOCKER_IMAGE=purestake/moonbeam
241+
DOCKER_TAG="${{ github.event.inputs.to }}"
242+
COMMIT=`git rev-list -n 1 '${{ github.event.inputs.to }}'`
245243
SHA=sha-${COMMIT::8}
246244
echo tagging "${DOCKER_IMAGE}:sha-${SHA}"
247245
docker tag "${DOCKER_IMAGE}:sha-${SHA}" "${DOCKER_IMAGE}:${DOCKER_TAG}"

0 commit comments

Comments
 (0)