Skip to content

Instantly share code, notes, and snippets.

@burki169
Created June 6, 2022 20:21
Show Gist options
  • Save burki169/a70c4b8bcf7b34d32aa544d538c81a36 to your computer and use it in GitHub Desktop.
Save burki169/a70c4b8bcf7b34d32aa544d538c81a36 to your computer and use it in GitHub Desktop.
Access predefined environment values
- name: Get commit Id
run: |
echo "COMMIT_ID=$GITHUB_SHA" >> $GITHUB_ENV
- name: Set image id
run: |
echo "DOCKER_IMAGE_TAG=$DOCKER_REPOSITORY_NAME/$DOCKER_IMAGE_BASENAME:$COMMIT_ID" >> $GITHUB_ENV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment