0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Only branch check is needed

This commit is contained in:
Adrian Dvergsdal 2020-07-19 22:12:23 +02:00
parent 885fcccacb
commit 56f2365606
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2

View file

@ -62,13 +62,13 @@ jobs:
ignore: tests/shunit2
- name: Verify signature
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master'
uses: atmoz/git-verify-ref@master
with:
public_key_dir: .github/public-keys
- name: Push images to Docker Hub registry
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master'
run: |
echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login \
-u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
@ -76,7 +76,7 @@ jobs:
docker push $IMAGE_NAME # no tags specified to include all tags
- name: Push images to GitHub registry
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master'
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com \
-u ${{ github.actor }} --password-stdin