mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Release docker images for cli
This commit is contained in:
12
.github/workflows/release_build.yml
vendored
12
.github/workflows/release_build.yml
vendored
@@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
# run only against tags
|
# run only against tags
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- "v*"
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -18,11 +18,16 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: 🐋 Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- run: git fetch --force --tags
|
- run: git fetch --force --tags
|
||||||
- run: echo "Ref name ${{github.ref_name}}"
|
- run: echo "Ref name ${{github.ref_name}}"
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.19.3'
|
go-version: ">=1.19.3"
|
||||||
cache: true
|
cache: true
|
||||||
cache-dependency-path: cli/go.sum
|
cache-dependency-path: cli/go.sum
|
||||||
- name: libssl1.1 => libssl1.0-dev for OSXCross
|
- name: libssl1.1 => libssl1.0-dev for OSXCross
|
||||||
@@ -45,8 +50,7 @@ jobs:
|
|||||||
AUR_KEY: ${{ secrets.AUR_KEY }}
|
AUR_KEY: ${{ secrets.AUR_KEY }}
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
- run: pip install --upgrade cloudsmith-cli
|
- run: pip install --upgrade cloudsmith-cli
|
||||||
- name: Publish to CloudSmith
|
- name: Publish to CloudSmith
|
||||||
run: sh cli/upload_to_cloudsmith.sh
|
run: sh cli/upload_to_cloudsmith.sh
|
||||||
env:
|
env:
|
||||||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
||||||
|
|
||||||
|
|||||||
@@ -68,10 +68,10 @@ archives:
|
|||||||
|
|
||||||
release:
|
release:
|
||||||
replace_existing_draft: true
|
replace_existing_draft: true
|
||||||
mode: 'replace'
|
mode: "replace"
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: "checksums.txt"
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "{{ incpatch .Version }}-devel"
|
name_template: "{{ incpatch .Version }}-devel"
|
||||||
@@ -80,8 +80,8 @@ changelog:
|
|||||||
sort: asc
|
sort: asc
|
||||||
filters:
|
filters:
|
||||||
exclude:
|
exclude:
|
||||||
- '^docs:'
|
- "^docs:"
|
||||||
- '^test:'
|
- "^test:"
|
||||||
|
|
||||||
# publishers:
|
# publishers:
|
||||||
# - name: fury.io
|
# - name: fury.io
|
||||||
@@ -109,30 +109,30 @@ brews:
|
|||||||
man1.install "manpages/infisical.1.gz"
|
man1.install "manpages/infisical.1.gz"
|
||||||
|
|
||||||
nfpms:
|
nfpms:
|
||||||
- id: infisical
|
- id: infisical
|
||||||
package_name: infisical
|
package_name: infisical
|
||||||
builds:
|
builds:
|
||||||
- all-other-builds
|
- all-other-builds
|
||||||
vendor: Infisical, Inc
|
vendor: Infisical, Inc
|
||||||
homepage: https://infisical.com/
|
homepage: https://infisical.com/
|
||||||
maintainer: Infisical, Inc
|
maintainer: Infisical, Inc
|
||||||
description: The offical Infisical CLI
|
description: The offical Infisical CLI
|
||||||
license: MIT
|
license: MIT
|
||||||
formats:
|
formats:
|
||||||
- rpm
|
- rpm
|
||||||
- deb
|
- deb
|
||||||
- apk
|
- apk
|
||||||
- archlinux
|
- archlinux
|
||||||
bindir: /usr/bin
|
bindir: /usr/bin
|
||||||
contents:
|
contents:
|
||||||
- src: ./completions/infisical.bash
|
- src: ./completions/infisical.bash
|
||||||
dst: /etc/bash_completion.d/infisical
|
dst: /etc/bash_completion.d/infisical
|
||||||
- src: ./completions/infisical.fish
|
- src: ./completions/infisical.fish
|
||||||
dst: /usr/share/fish/vendor_completions.d/infisical.fish
|
dst: /usr/share/fish/vendor_completions.d/infisical.fish
|
||||||
- src: ./completions/infisical.zsh
|
- src: ./completions/infisical.zsh
|
||||||
dst: /usr/share/zsh/site-functions/_infisical
|
dst: /usr/share/zsh/site-functions/_infisical
|
||||||
- src: ./manpages/infisical.1.gz
|
- src: ./manpages/infisical.1.gz
|
||||||
dst: /usr/share/man/man1/infisical.1.gz
|
dst: /usr/share/man/man1/infisical.1.gz
|
||||||
|
|
||||||
scoop:
|
scoop:
|
||||||
bucket:
|
bucket:
|
||||||
@@ -146,15 +146,14 @@ scoop:
|
|||||||
license: MIT
|
license: MIT
|
||||||
|
|
||||||
aurs:
|
aurs:
|
||||||
-
|
- name: infisical-bin
|
||||||
name: infisical-bin
|
|
||||||
homepage: "https://infisical.com"
|
homepage: "https://infisical.com"
|
||||||
description: "The official Infisical CLI"
|
description: "The official Infisical CLI"
|
||||||
maintainers:
|
maintainers:
|
||||||
- Infisical, Inc <support@infisical.com>
|
- Infisical, Inc <support@infisical.com>
|
||||||
license: MIT
|
license: MIT
|
||||||
private_key: '{{ .Env.AUR_KEY }}'
|
private_key: "{{ .Env.AUR_KEY }}"
|
||||||
git_url: 'ssh://aur@aur.archlinux.org/infisical-bin.git'
|
git_url: "ssh://aur@aur.archlinux.org/infisical-bin.git"
|
||||||
package: |-
|
package: |-
|
||||||
# bin
|
# bin
|
||||||
install -Dm755 "./infisical" "${pkgdir}/usr/bin/infisical"
|
install -Dm755 "./infisical" "${pkgdir}/usr/bin/infisical"
|
||||||
@@ -169,19 +168,12 @@ aurs:
|
|||||||
install -Dm644 "./completions/infisical.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/infisical.fish"
|
install -Dm644 "./completions/infisical.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/infisical.fish"
|
||||||
# man pages
|
# man pages
|
||||||
install -Dm644 "./manpages/infisical.1.gz" "${pkgdir}/usr/share/man/man1/infisical.1.gz"
|
install -Dm644 "./manpages/infisical.1.gz" "${pkgdir}/usr/share/man/man1/infisical.1.gz"
|
||||||
# dockers:
|
dockers:
|
||||||
# - dockerfile: goreleaser.dockerfile
|
- dockerfile: cli/docker/Dockerfile
|
||||||
# goos: linux
|
goos: linux
|
||||||
# goarch: amd64
|
goarch: amd64
|
||||||
# ids:
|
ids:
|
||||||
# - infisical
|
- infisical
|
||||||
# image_templates:
|
image_templates:
|
||||||
# - "infisical/cli:{{ .Version }}"
|
- "infisical/cli:{{ .Version }}"
|
||||||
# - "infisical/cli:{{ .Major }}.{{ .Minor }}"
|
- "infisical/cli:latest"
|
||||||
# - "infisical/cli:{{ .Major }}"
|
|
||||||
# - "infisical/cli:latest"
|
|
||||||
# build_flag_templates:
|
|
||||||
# - "--label=org.label-schema.schema-version=1.0"
|
|
||||||
# - "--label=org.label-schema.version={{.Version}}"
|
|
||||||
# - "--label=org.label-schema.name={{.ProjectName}}"
|
|
||||||
# - "--platform=linux/amd64"
|
|
||||||
|
|||||||
4
cli/docker/Dockerfile
Normal file
4
cli/docker/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM alpine
|
||||||
|
RUN apk add --no-cache tini
|
||||||
|
COPY infisical /bin/infisical
|
||||||
|
ENTRYPOINT ["/sbin/tini", "--", "/bin/infisical"]
|
||||||
Reference in New Issue
Block a user