Skip to content

Merge pull request #39 from dskiff/renovate/actions-checkout-digest #79

Merge pull request #39 from dskiff/renovate/actions-checkout-digest

Merge pull request #39 from dskiff/renovate/actions-checkout-digest #79

Workflow file for this run

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 }}