Skip to content

Commit

Permalink
Merge pull request #28 from drolx/main
Browse files Browse the repository at this point in the history
test env output methods
  • Loading branch information
gpproton authored Nov 21, 2023
2 parents 9af2693 + 49faac2 commit 09c2aa8
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/deploy-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,28 @@ jobs:
- name: Extract version from tag
uses: damienaicheh/extract-version-from-tag-action@v1.1.0

- name: Extract info
run: |
echo $SOURCE_NAME
echo $SOURCE_BRANCH
echo $SOURCE_TAG
env:
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}

- name: Get tag version
run: echo "_VERSION=`echo ${PATCH#v*}`" >> $GITHUB_ENV
run: echo "_VERSION=`echo ${SOURCE_TAG#v*}`" >> $GITHUB_ENV

- name: Set environment DOCKERHUB_IMAGE_TAGS and VERSION
run: |
echo "SOURCE_TAG::: $SOURCE_TAG"
echo "env.SOURCE_TAG::: ${{ env.SOURCE_TAG }}"
echo "_VERSION::: $_VERSION"
echo "env._VERSION::: ${{ env._VERSION }}"
echo "PATCH::: $PATCH"
echo "env.PATCH::: ${{ env.PATCH }}"
VERSION="${{ env._VERSION }}"
_MAJOR_VERSION=${VERSION%.*}
_DOCKERHUB_IMAGE_TAGS="$DOCKERHUB_REPOSITORY:$_VERSION-${{ matrix.os }}"
Expand Down

0 comments on commit 09c2aa8

Please sign in to comment.