minor optimizations to reward system backend and UI #249
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: Deploy | |
# only trigger on pull request closed events | |
on: | |
pull_request: | |
branches: | |
- develop | |
- master | |
types: [ closed ] | |
jobs: | |
deploy: | |
# this job will only run if the PR has been merged | |
if: github.event.pull_request.merged == true | |
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 | |
- name: deploy to docker | |
run: | | |
chmod +x ./ci_scripts/docker-push.sh | |
./ci_scripts/docker-push.sh -t ${GITHUB_REF##*/} -p | |
shell: bash |