[Update] Docker file and appsettings #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish WebApp Docker Container | |
on: | |
push: | |
tags: | |
- 'web-app-*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout branch | |
uses: actions/checkout@v3 | |
- name: Login to DockerHub Registry | |
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin | |
- name: Get the version | |
id: vars | |
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | |
- name: Build the Docker image and tag | |
run: docker build -f reqifviewer/Dockerfile -t rheagroup/reqifviewer:latest -t rheagroup/reqifviewer:${{ steps.vars.outputs.tag }} . | |
- name: push $RELEASE_VERSION tag | |
run: docker push rheagroup/reqifviewer:${{ steps.vars.outputs.tag }} | |
- name: push latest tag | |
run: docker push rheagroup/reqifviewer:latest |