Skip to content

Commit

Permalink
feat(ga): move lock to pushing an image
Browse files Browse the repository at this point in the history
  • Loading branch information
kostaspt committed Jan 9, 2022
1 parent 18ca71d commit fe51081
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ jobs:

runs-on: ubuntu-latest

if: github.ref == 'refs/heads/main'

steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -75,4 +73,5 @@ jobs:
run: docker build -t ghcr.io/kostaspt/domane-api:latest .

- name: Push to Registry
if: github.ref == 'refs/heads/main'
run: docker push ghcr.io/kostaspt/domane-api:latest
3 changes: 1 addition & 2 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ jobs:

runs-on: ubuntu-latest

if: github.ref == 'refs/heads/main'

steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -78,4 +76,5 @@ jobs:
run: docker build --build-arg DOMAIN=domane.io -t ghcr.io/kostaspt/domane-client:latest .

- name: Push to Registry
if: github.ref == 'refs/heads/main'
run: docker push ghcr.io/kostaspt/domane-client:latest

0 comments on commit fe51081

Please sign in to comment.