Skip to content

Commit

Permalink
use pyTooling/Actions/with-post-step instead of docker/login-action
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Nov 10, 2022
1 parent 2010c92 commit 9e6e7a4
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,16 @@ jobs:
env:
BASE_ARCH: ${{ matrix.arch }}

- name: Login to DockerHub
if: github.event_name != 'pull_request' && github.repository == 'dbhi/qus'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}

- name: Deploy to DockerHub
if: github.event_name != 'pull_request' && github.repository == 'dbhi/qus'
run: |
docker image ls
docker push -a aptman/qus
uses: pyTooling/Actions/with-post-step@r0
with:
main: |
# Release
echo '${{ secrets.DOCKER_PASS }}' | docker login docker.io -u '${{ secrets.DOCKER_USER }}' --password-stdin
docker image ls
docker push -a aptman/qus
post: docker logout docker.io


Manifests:
Expand All @@ -146,20 +144,19 @@ jobs:
cfg.seek(0)
dump(data, cfg, indent=2)
- name: Login to DockerHub
if: github.event_name != 'pull_request' && github.repository == 'dbhi/qus'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}

- uses: actions/checkout@v3

- run: ./.github/setup.sh

- name: Update manifests
if: github.event_name != 'pull_request' && github.repository == 'dbhi/qus'
run: ./run.sh -m
uses: pyTooling/Actions/with-post-step@r0
with:
main: |
# Update manifests
echo '${{ secrets.DOCKER_PASS }}' | docker login docker.io -u '${{ secrets.DOCKER_USER }}' --password-stdin
./run.sh -m
post: docker logout docker.io


Action-All:
Expand Down

0 comments on commit 9e6e7a4

Please sign in to comment.