|
|
@ -21,11 +21,14 @@ jobs: |
|
|
|
steps: |
|
|
|
- name: Check out from Git |
|
|
|
uses: actions/checkout@v2 |
|
|
|
- name: Test env |
|
|
|
run: echo "action_state=yellow" >> $GITHUB_ENV |
|
|
|
- name: Test env 2 |
|
|
|
run: echo "$action_state" |
|
|
|
- name: Git tag |
|
|
|
run: echo "::set-env name=HEAD_TAG::$(git tag --points-at HEAD)" |
|
|
|
- name: Show set env variables again |
|
|
|
run: | |
|
|
|
printf " HEAD_TAG: %s\n" "${{ env.HEAD_TAG }}" |
|
|
|
run: echo "head_tag=$(git tag --points-at HEAD)" >> $GITHUB_ENV |
|
|
|
- name: Test git tag |
|
|
|
run: echo "$head_tag" |
|
|
|
- name: Login to Docker Hub |
|
|
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin |
|
|
|
- name: Checkout project |
|
|
|