@@ -3,12 +3,17 @@ name: Build and push on release (new tag)
3
3
on :
4
4
push :
5
5
tags :
6
- - ' * '
6
+ - " * "
7
7
8
8
jobs :
9
9
build :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
+ - name : Get tag
13
+ id : get_tag
14
+ run : echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
15
+ - run : |
16
+ echo Detected GIT_TAG: ${GIT_TAG}
12
17
- name : Check out code
13
18
uses : actions/checkout@v1
14
19
- name : Install dependencies
@@ -19,13 +24,10 @@ jobs:
19
24
uses : borales/actions-yarn@v2.0.0
20
25
with :
21
26
cmd : lint
22
- - name : Get tag
23
- id : get_tag
24
- run : echo ::set-env name=GIT_TAG::${GITHUB_REF#refs/tags/}
25
27
- name : Build code
26
28
uses : borales/actions-yarn@v2.0.0
27
29
env :
28
- NODE_OPTIONS : ' --max-old-space-size=8192'
30
+ NODE_OPTIONS : " --max-old-space-size=8192"
29
31
REACT_APP_GIT_SHA : ${{ github.sha }}
30
32
REACT_APP_VERSION : ${{ env.GIT_TAG }}
31
33
with :
38
40
password : ${{ secrets.QUAYIO_OCPMETAL_PASSWORD }}
39
41
registry : quay.io
40
42
dockerfile : Dockerfile
41
- tags : ' stable,${{ env.GIT_TAG }},${{ github.sha }}'
43
+ tags : " stable,${{ env.GIT_TAG }},${{ github.sha }}"
42
44
- name : Publish integration tests to quay.io
43
45
uses : elgohr/Publish-Docker-Github-Action@2.14
44
46
with :
47
49
password : ${{ secrets.QUAYIO_OCPMETAL_PASSWORD }}
48
50
registry : quay.io
49
51
dockerfile : Dockerfile.cypress
50
- tags : ' stable,${{ env.GIT_TAG }},${{ github.sha }}'
52
+ tags : " stable,${{ env.GIT_TAG }},${{ github.sha }}"
0 commit comments