Skip to content

feat: update moyuban (#34) #30

feat: update moyuban (#34)

feat: update moyuban (#34) #30

Workflow file for this run

name: Docker Image Release
on:
push:
tags:
- '*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Docker Login
uses: docker/login-action@v1.8.0
with:
registry: dreamhunter2333.azurecr.io
username: ${{ secrets.AZURE_REGISTRY_USERNAME }}
password: ${{ secrets.AZURE_REGISTRY_PASSWORD }}
- name: Build the Docker image
run: docker build . --file docker/dockerfile --tag dreamhunter2333.azurecr.io/awsl/awsl-api:${{ steps.get_version.outputs.VERSION }}
- name: Push the Docker image
run: docker push dreamhunter2333.azurecr.io/awsl/awsl-api:${{ steps.get_version.outputs.VERSION }}