Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
curl https://mise.run | sh
mise install

- name: 🔑 Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: ☁️ Release
run: |
mise release
Expand Down
20 changes: 20 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ builds:
goarch: [ amd64, arm64 ]
goamd64: [ v1, v3 ]

dockers_v2:
- id: skpr-cli
dockerfile: Dockerfile
ids:
- skpr-cli
- skpr-rsh
images:
- "ghcr.io/skpr/cli"
- "docker.io/skpr/cli"
tags:
- "latest"
- "{{ .Commit }}"
- "{{ .Tag }}"
sbom: false
flags:
- "--pull"
platforms:
- linux/amd64
- linux/arm64

archives:
- id: nix
builds: [ skpr-cli, skpr-rsh ]
Expand Down
3 changes: 2 additions & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ description = "Release the command line interface"
run = "goreleaser"
depends = ["vendor"]

[tasks.snapshot-release]
[tasks.snapshot]
description = "Create a snapshot release for local testing"
run = "goreleaser --snapshot --clean --verbose"
depends = ["vendor"]
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.21
FROM alpine:3.23

RUN apk --no-cache add bash ca-certificates git openssh-client curl rsync docker-cli jq yq
COPY skpr skpr-rsh /usr/local/bin/

ARG TARGETPLATFORM
COPY $TARGETPLATFORM/skpr $TARGETPLATFORM/skpr-rsh /usr/local/bin/

CMD ["skpr"]