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:
parent
885fcccacb
commit
56f2365606
1 changed files with 3 additions and 3 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -62,13 +62,13 @@ jobs:
|
||||||
ignore: tests/shunit2
|
ignore: tests/shunit2
|
||||||
|
|
||||||
- name: Verify signature
|
- 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
|
uses: atmoz/git-verify-ref@master
|
||||||
with:
|
with:
|
||||||
public_key_dir: .github/public-keys
|
public_key_dir: .github/public-keys
|
||||||
|
|
||||||
- name: Push images to Docker Hub registry
|
- 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: |
|
run: |
|
||||||
echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login \
|
echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login \
|
||||||
-u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
|
-u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
|
||||||
|
@ -76,7 +76,7 @@ jobs:
|
||||||
docker push $IMAGE_NAME # no tags specified to include all tags
|
docker push $IMAGE_NAME # no tags specified to include all tags
|
||||||
|
|
||||||
- name: Push images to GitHub registry
|
- name: Push images to GitHub registry
|
||||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com \
|
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com \
|
||||||
-u ${{ github.actor }} --password-stdin
|
-u ${{ github.actor }} --password-stdin
|
||||||
|
|
Loading…
Reference in a new issue