Merge branch 'master' of https://github.com/dan-atack/SMARS #8
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: Build Docker Image | |
# Only trigger a build when a merge/commit is made to the master branch | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
SMARS_ENVIRONMENT: 'staging' | |
DOMAIN_NAME: 'staging.freesmars.com' | |
DOCKER_REPO: 'danatack/smars' | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Log in to Docker Hub | |
run: docker login -u danatack -p ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push Docker image | |
run: bash startBuild.sh | |
- name: Log out from Docker Hub | |
run: docker logout |