Merge pull request #2086 from mrpalide/fix/improve-deploy-githubactio… #398
This file contains hidden or 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: Deploy | |
| # only trigger on pull request closed events | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: deploy to docker | |
| run: | | |
| if [[ "${GITHUB_REF##*/}" == "develop" ]]; then | |
| make docker-push-test | |
| elif [[ "${GITHUB_REF##*/}" == "master" ]]; then | |
| make docker-push | |
| fi | |
| shell: bash |