Skip to content

Commit

Permalink
switch ko build to docker login usage
Browse files Browse the repository at this point in the history
  • Loading branch information
evghen1 committed Mar 26, 2024
1 parent a0497c3 commit d1fb2c8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
oci-builds:
name: build OCI images
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io/kndpio/cli
steps:
- uses: actions/setup-go@v4
with:
Expand All @@ -41,10 +43,13 @@ jobs:
run: echo VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
- uses: ko-build/[email protected]
env:
KO_DOCKER_REPO: ghcr.io/kndpio/cli
KO_DOCKER_REPO: ${{ env.REGISTRY }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build
env:
auth_token: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "${auth_token}" | ko login ghcr.io --username KNDP --password-stdin
ko build ./cmd/kndp/ --tags=${{ env.VERSION }} --bare

0 comments on commit d1fb2c8

Please sign in to comment.