Skip to content

Commit

Permalink
workflows use new cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
dskiff committed Apr 25, 2024
1 parent aca5410 commit 09e7579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ jobs:
run: cp ./dist/tko_linux_amd64_v1/tko /usr/local/bin/tko

- name: Publish (latest)
run: tko "./dist/tko_linux_amd64_v1"
run: tko build -t "ghcr.io/dskiff/tko:latest" -d "/usr/local/bin" "./dist/tko_linux_amd64_v1"
env:
TKO_BASE_IMAGE: debian:bookworm-slim@sha256:155280b00ee0133250f7159b567a07d7cd03b1645714c3a7458b2287b0ca83cb
TKO_DEST_PATH: /usr/local/bin
TKO_TARGET_REPO: ghcr.io/dskiff/tko:latest
GITHUB_TOKEN: ${{ github.token }}
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,12 @@ jobs:
run: cp ./dist/tko_linux_amd64_v1/tko /usr/local/bin/tko

- name: Publish (bin)
run: tko "./dist/tko_linux_amd64_v1"
run: tko build -b "scratch" bin" "./dist/tko_linux_amd64_v1"
env:
TKO_BASE_IMAGE: scratch
TKO_DEST_PATH: /usr/local/bin
TKO_TARGET_REPO: ghcr.io/dskiff/tko:bin
GITHUB_TOKEN: ${{ github.token }}

- name: Publish (version)
run: tko "./dist/tko_linux_amd64_v1"
run: tko build -d "/usr/local/bin" -t "ghcr.io/dskiff/tko:${{ github.ref_name }}" "./dist/tko_linux_amd64_v1"
env:
TKO_BASE_IMAGE: debian:bookworm-slim@sha256:155280b00ee0133250f7159b567a07d7cd03b1645714c3a7458b2287b0ca83cb
TKO_DEST_PATH: /usr/local/bin
TKO_TARGET_REPO: ghcr.io/dskiff/tko:${{ github.ref_name }}
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 09e7579

Please sign in to comment.