Update .gitigonre #327
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 | |
run: | | |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | |
- 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 |