Skip to content

Commit 0effcd3

Browse files
committed
revert login to github repo
1 parent 1ef169b commit 0effcd3

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/backend.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
with:
8888
context: ./backend
8989
platforms: linux/amd64,linux/arm64
90-
push: true
90+
push: ${{ github.event_name != 'pull_request' }}
9191
tags: ${{ steps.backendMeta.outputs.tags }}
9292
labels: ${{ steps.backendMeta.outputs.labels }}
9393

@@ -97,7 +97,7 @@ jobs:
9797
with:
9898
context: ./backend
9999
platforms: linux/amd64,linux/arm64
100-
push: true
100+
push: ${{ github.event_name != 'pull_request' }}
101101
tags: ${{ steps.heartbeatMeta.outputs.tags }}
102102
file: ./backend/heartbeat.Dockerfile
103103
labels: ${{ steps.heartbeatMeta.outputs.labels }}

.github/workflows/frontend.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,14 @@ jobs:
4848
with:
4949
username: ${{ secrets.DOCKERHUB_USERNAME }}
5050
password: ${{ secrets.DOCKERHUB_PASSWORD }}
51-
52-
- name: Login to GitHub Container Registry
53-
uses: docker/login-action@v2
54-
with:
55-
registry: ghcr.io
56-
username: ${{ github.actor }}
57-
password: ${{ secrets.GITHUB_TOKEN }}
5851
-
5952
name: Build and push clowder-build
6053
uses: docker/build-push-action@v3
6154
with:
6255
context: ./frontend
6356
target: clowder-build
6457
platforms: linux/amd64
65-
push: true
58+
push: ${{ github.event_name != 'pull_request' }}
6659
tags: ${{ steps.meta.outputs.tags }}
6760
labels: ${{ steps.meta.outputs.labels }}
6861
-
@@ -72,6 +65,6 @@ jobs:
7265
context: ./frontend
7366
target: clowder-runtime
7467
platforms: linux/amd64
75-
push: true
68+
push: ${{ github.event_name != 'pull_request' }}
7669
tags: ${{ steps.meta.outputs.tags }}
7770
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)