Skip to content

Commit

Permalink
Fix: branch main to master
Browse files Browse the repository at this point in the history
  • Loading branch information
emost22 committed Jul 11, 2024
1 parent 0e65e38 commit 900b2be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: spurt CICD
on:
push:
branches:
- main
- master

jobs:
push_to_registry:
Expand All @@ -20,7 +20,7 @@ jobs:
distribution: 'corretto'

- name: make application.yml
if: contains(github.ref, 'develop') || contains(github.ref, 'main')
if: contains(github.ref, 'master')
run: |
cd ./src/main/resources
touch ./application.yml
Expand All @@ -46,7 +46,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Docker build & push to prod
if: contains(github.ref, 'develop') || contains(github.ref, 'main')
if: contains(github.ref, 'master')
run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -t spurt-be -f Dockerfile .
Expand All @@ -59,7 +59,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Deploy to prod
if: contains(github.ref, 'develop') || contains(github.ref, 'main')
if: contains(github.ref, 'master')
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_NAME }}
Expand Down

0 comments on commit 900b2be

Please sign in to comment.