Merge pull request #41 from dskiff/renovate/debian-bookworm-slim #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish latest | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
packages: write | |
jobs: | |
publish: | |
name: Publish latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
- name: Run GoReleaser (build) | |
uses: goreleaser/goreleaser-action@d33b6f6aeabd7fed8bb3fbf32c4d890d29f48545 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: build --snapshot | |
- name: Use built tko for publish | |
run: cp ./dist/tko_linux_amd64_v1/tko /usr/local/bin/tko | |
- name: Publish (latest) | |
run: | | |
tko build \ | |
--target-repo "ghcr.io/dskiff/tko:latest" \ | |
--entrypoint "/bin/bash" \ | |
"./dist/tko_linux_amd64_v1" | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |