This repository was archived by the owner on Dec 5, 2023. It is now read-only.
Commit d3f9fdf 1 parent 4caa2f2 commit d3f9fdf Copy full SHA for d3f9fdf
File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,25 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
+ - name : Get version
16
+ id : get_version
17
+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
18
+
15
19
- uses : actions/checkout@v2
16
20
- name : Docker Login
17
21
uses : docker/login-action@v1.8.0
18
22
with :
19
23
registry : dreamhunter2333.azurecr.io
20
24
username : ${{ secrets.AZURE_REGISTRY_USERNAME }}
21
25
password : ${{ secrets.AZURE_REGISTRY_PASSWORD }}
26
+
22
27
- name : Rename VUE_APP_BASE_API
23
28
run : echo ${{ secrets.AWSL_API_HOST }} > .env.production
29
+
24
30
- name : Install and Build
25
31
run : yarn && yarn build
32
+
26
33
- name : Build the Docker image
27
- run : docker build . --file docker/Dockerfile --tag dreamhunter2333.azurecr.io/awsl/awsl-front:${{ github.ref }}
34
+ run : docker build . --file docker/Dockerfile --tag dreamhunter2333.azurecr.io/awsl/awsl-front:${{ steps.get_version.outputs.VERSION }}
28
35
- name : Push the Docker image
29
- run : docker push dreamhunter2333.azurecr.io/awsl/awsl-front:${{ github.ref }}
36
+ run : docker push dreamhunter2333.azurecr.io/awsl/awsl-front:${{ steps.get_version.outputs.VERSION }}
You can’t perform that action at this time.
0 commit comments