Skip to content

Commit

Permalink
split docker prep env and login for manual pipeline trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Knecht committed Sep 29, 2023
1 parent 6ac291e commit 4f550e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: update cache on every commit
- name: Update cache on every commit
uses: actions/cache@v3
with:
path: /home/runner/tmp
Expand All @@ -59,10 +59,14 @@ jobs:
exit 1
fi
- name: Docker setup env
- name: Docker registry login
if: fromJSON(env.should_push_image)
run: |
echo "${{ secrets.DOCKER_HUB_PASSWORD }}" \
| docker login -u "${{ secrets.DOCKER_HUB_USER }}" --password-stdin
- name: Docker env prep
run: |
docker buildx create --use
docker buildx inspect --bootstrap
Expand Down

0 comments on commit 4f550e2

Please sign in to comment.