Skip to content

Commit 039127d

Browse files
committed
no access to secrets on pull requests
1 parent cbb57b6 commit 039127d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/docker.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- run: docker build -f docker/Dockerfile --build-arg SOLANA_VERSION=${{ env.SOLANA_VERSION }} --tag ${{ env.DOCKER_IMAGE }} .
2121
# publish to docker.io
2222
- run: echo "${{ secrets.DOCKER_IO_PASS }}" | docker login docker.io -u ${{ secrets.DOCKER_IO_USER }} --password-stdin
23+
if: startsWith( github.ref, 'refs/tags/' )
2324
- run: docker image tag ${DOCKER_IMAGE} docker.io/pythfoundation/pyth-client:${DOCKER_TAG}
25+
if: startsWith( github.ref, 'refs/tags/' )
2426
- run: docker image push docker.io/pythfoundation/pyth-client:${DOCKER_TAG}
2527
if: startsWith( github.ref, 'refs/tags/' )

0 commit comments

Comments
 (0)