Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit 5597afb

Browse files
Create release.yml
1 parent 44b031b commit 5597afb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Docker Image Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*.*.*'
7+
8+
jobs:
9+
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Docker Login
17+
uses: docker/login-action@v1.8.0
18+
with:
19+
registry: dreamhunter2333.azurecr.io
20+
username: ${{ secrets.AZURE_REGISTRY_USERNAME }}
21+
password: ${{ secrets.AZURE_REGISTRY_PASSWORD }}
22+
- name: Rename VUE_APP_BASE_API
23+
run: echo ${{ secrets.AWSL_API_HOST }} > .env.production
24+
- name: Install and Build
25+
run: yarn && yarn build
26+
- name: Build the Docker image
27+
run: docker build . --file docker/Dockerfile --tag dreamhunter2333.azurecr.io/awsl/awsl-front:${{ github.ref }}
28+
- name: Push the Docker image
29+
run: docker push dreamhunter2333.azurecr.io/awsl/awsl-front:${{ github.ref }}

0 commit comments

Comments
 (0)