Skip to content

Commit

Permalink
Try using secrets to set SKAFFOLD_DEFAULT_REPO
Browse files Browse the repository at this point in the history
  • Loading branch information
snickell committed Aug 8, 2023
1 parent a19f582 commit 8360a9c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/skaffold_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,25 @@ jobs:
# - my_docker_volume:/volume_mount
# options: --cpus 1
env:
SKAFFOLD_DEFAULT_REPO: registry.hub.docker.com
SKAFFOLD_DEFAULT_REPO: ${{ secrets.K8S_DOCKEHUB_REPOSITORY }}
steps:
- run: |
echo $SKAFFOLD_DEFAULT_REPO
- name: Checkout sources
uses: actions/checkout@v3
- name: Skaffold Cache
uses: actions/cache@v3
with:
path: "${{ github.workspace }}/.skaffold/cache"
key: skaffold-${{ hashFiles('**/cache') }}
restore-keys: |
skaffold-
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.K8S_DOCKERHUB_TOKEN }}
password: ${{ secrets.K8S_DOCKER_REPO_SECRET }}
registry: ${{ secrets.K8S_DOCKEHUB_REPOSITORY }}
username: ${{ secrets.K8S_DOCKERHUB_USERNAME }}
password: ${{ secrets.K8S_DOCKERHUB_TOKEN }}
- run: |
skaffold build \
--push \
Expand Down

0 comments on commit 8360a9c

Please sign in to comment.