mirror of
https://github.com/openziti/zrok.git
synced 2025-06-02 16:16:17 +02:00
Merge pull request #434 from openziti/linux-cli-package
add Linux CLI package
This commit is contained in:
commit
ec3b944862
6
.github/workflows/ci-build.yml
vendored
6
.github/workflows/ci-build.yml
vendored
@ -10,6 +10,10 @@ on:
|
|||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- 'website/**'
|
- 'website/**'
|
||||||
|
|
||||||
|
# cancel older, redundant builds that haven't started yet
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-build:
|
ubuntu-build:
|
||||||
name: Build Linux AMD64 CLI
|
name: Build Linux AMD64 CLI
|
||||||
@ -95,7 +99,7 @@ jobs:
|
|||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_API_USER }}
|
username: ${{ vars.DOCKER_HUB_API_USER || secrets.DOCKER_HUB_API_USER }}
|
||||||
password: ${{ secrets.DOCKER_HUB_API_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_API_TOKEN }}
|
||||||
|
|
||||||
- name: Set Up Container Image Tags for zrok CLI Container
|
- name: Set Up Container Image Tags for zrok CLI Container
|
||||||
|
4
.github/workflows/deploy-doc-site.yml
vendored
4
.github/workflows/deploy-doc-site.yml
vendored
@ -5,6 +5,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
# allow GITHUB_TOKEN to be used by the peaceiris/actions-gh-pages action to push to gh-pages branch
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
6
.github/workflows/homebrew.yml
vendored
6
.github/workflows/homebrew.yml
vendored
@ -6,14 +6,16 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-brew:
|
update-brew:
|
||||||
|
if: github.repository_owner == 'openziti'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Extract Version
|
- name: Extract Version
|
||||||
id: extract-version
|
id: extract-version
|
||||||
run: |
|
run: |
|
||||||
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
|
echo "tag-name=${GITHUB_REF#refs/tags/}" | tee -a ${GITHUB_OUTPUT}
|
||||||
|
|
||||||
- uses: mislav/bump-homebrew-formula-action@v3.1
|
- uses: mislav/bump-homebrew-formula-action@v3.1
|
||||||
if: "!contains(github.ref, '-')"
|
if: ${{ !contains(github.ref, '-') }}
|
||||||
with:
|
with:
|
||||||
formula-name: zrok
|
formula-name: zrok
|
||||||
download-url: https://github.com/openziti/zrok/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz
|
download-url: https://github.com/openziti/zrok/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz
|
||||||
|
100
.github/workflows/publish-docker-images.yml
vendored
100
.github/workflows/publish-docker-images.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
id: semver
|
id: semver
|
||||||
run: |
|
run: |
|
||||||
zrok_semver=${RELEASE_REF#refs/tags/}
|
zrok_semver=${RELEASE_REF#refs/tags/}
|
||||||
echo "zrok_semver=${zrok_semver#v}" >> $GITHUB_OUTPUT
|
echo "zrok_semver=${zrok_semver#v}" | tee -a $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Checkout Workspace
|
- name: Checkout Workspace
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -67,7 +67,7 @@ jobs:
|
|||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_API_USER }}
|
username: ${{ vars.DOCKER_HUB_API_USER || secrets.DOCKER_HUB_API_USER }}
|
||||||
password: ${{ secrets.DOCKER_HUB_API_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_API_TOKEN }}
|
||||||
|
|
||||||
- name: Set Up Container Image Tags for zrok CLI Container
|
- name: Set Up Container Image Tags for zrok CLI Container
|
||||||
@ -76,10 +76,7 @@ jobs:
|
|||||||
ZROK_VERSION: ${{ steps.semver.outputs.zrok_semver }}
|
ZROK_VERSION: ${{ steps.semver.outputs.zrok_semver }}
|
||||||
id: tagprep_cli
|
id: tagprep_cli
|
||||||
run: |
|
run: |
|
||||||
DOCKER_TAGS=""
|
echo DOCKER_TAGS="${RELEASE_REPO}:${ZROK_VERSION},${RELEASE_REPO}:latest" | tee -a $GITHUB_OUTPUT
|
||||||
DOCKER_TAGS="${RELEASE_REPO}:${ZROK_VERSION},${RELEASE_REPO}:latest"
|
|
||||||
echo "DEBUG: DOCKER_TAGS=${DOCKER_TAGS}"
|
|
||||||
echo DOCKER_TAGS="${DOCKER_TAGS}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
# this is the CLI image with the Linux binary for each
|
# this is the CLI image with the Linux binary for each
|
||||||
# arch that was downloaded in ./dist/
|
# arch that was downloaded in ./dist/
|
||||||
@ -95,94 +92,3 @@ jobs:
|
|||||||
DOCKER_BUILD_DIR=./docker/images/zrok
|
DOCKER_BUILD_DIR=./docker/images/zrok
|
||||||
ARTIFACTS_DIR=./dist
|
ARTIFACTS_DIR=./dist
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
# - name: Set Up Container Image Tags for zrok Controller Container
|
|
||||||
# env:
|
|
||||||
# RELEASE_REPO: openziti/zrok-controller
|
|
||||||
# ZROK_VERSION: ${{ steps.semver.outputs.zrok_semver }}
|
|
||||||
# id: tagprep_ctrl
|
|
||||||
# run: |
|
|
||||||
# DOCKER_TAGS=""
|
|
||||||
# DOCKER_TAGS="${RELEASE_REPO}:${ZROK_VERSION},${RELEASE_REPO}:latest"
|
|
||||||
# echo "DEBUG: DOCKER_TAGS=${DOCKER_TAGS}"
|
|
||||||
# echo DOCKER_TAGS="${DOCKER_TAGS}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
# # This is a use-case image based on the minimal CLI image. It needs the
|
|
||||||
# # ZROK_VERSION env var so it can build from the versioned image that
|
|
||||||
# # we pushed in the prior step.
|
|
||||||
# - name: Build & Push Multi-Platform Controller Container Image to Hub
|
|
||||||
# uses: docker/build-push-action@v3
|
|
||||||
# with:
|
|
||||||
# builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
# context: ${{ github.workspace }}/docker/images/zrok-controller/
|
|
||||||
# platforms: linux/amd64,linux/arm64
|
|
||||||
# tags: ${{ steps.tagprep_ctrl.outputs.DOCKER_TAGS }}
|
|
||||||
# build-args: |
|
|
||||||
# ZROK_VERSION=${{ env.ZROK_VERSION }}
|
|
||||||
# push: true
|
|
||||||
|
|
||||||
# - name: Set Up Container Image Tags for zrok Frontend Container
|
|
||||||
# env:
|
|
||||||
# RELEASE_REPO: openziti/zrok-frontend
|
|
||||||
# ZROK_VERSION: ${{ steps.semver.outputs.zrok_semver }}
|
|
||||||
# id: tagprep_frontend
|
|
||||||
# run: |
|
|
||||||
# DOCKER_TAGS=""
|
|
||||||
# DOCKER_TAGS="${RELEASE_REPO}:${ZROK_VERSION},${RELEASE_REPO}:latest"
|
|
||||||
# echo "DEBUG: DOCKER_TAGS=${DOCKER_TAGS}"
|
|
||||||
# echo DOCKER_TAGS="${DOCKER_TAGS}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
# - name: Build & Push Multi-Platform Frontend Container Image to Hub
|
|
||||||
# uses: docker/build-push-action@v3
|
|
||||||
# with:
|
|
||||||
# builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
# context: ${{ github.workspace }}/docker/images/zrok-frontend/
|
|
||||||
# platforms: linux/amd64,linux/arm64
|
|
||||||
# tags: ${{ steps.tagprep_frontend.outputs.DOCKER_TAGS }}
|
|
||||||
# build-args: |
|
|
||||||
# ZROK_VERSION=${{ env.ZROK_VERSION }}
|
|
||||||
# push: true
|
|
||||||
|
|
||||||
# - name: Set Up Container Image Tags for zrok Share Container
|
|
||||||
# env:
|
|
||||||
# RELEASE_REPO: openziti/zrok-share
|
|
||||||
# ZROK_VERSION: ${{ steps.semver.outputs.zrok_semver }}
|
|
||||||
# id: tagprep_share
|
|
||||||
# run: |
|
|
||||||
# DOCKER_TAGS=""
|
|
||||||
# DOCKER_TAGS="${RELEASE_REPO}:${ZROK_VERSION},${RELEASE_REPO}:latest"
|
|
||||||
# echo "DEBUG: DOCKER_TAGS=${DOCKER_TAGS}"
|
|
||||||
# echo DOCKER_TAGS="${DOCKER_TAGS}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
# - name: Build & Push Multi-Platform zrok Share Container Image to Hub
|
|
||||||
# uses: docker/build-push-action@v3
|
|
||||||
# with:
|
|
||||||
# builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
# context: ${{ github.workspace }}/docker/images/zrok-share/
|
|
||||||
# platforms: linux/amd64,linux/arm64
|
|
||||||
# tags: ${{ steps.tagprep_share.outputs.DOCKER_TAGS }}
|
|
||||||
# build-args: |
|
|
||||||
# ZROK_VERSION=${{ env.ZROK_VERSION }}
|
|
||||||
# push: true
|
|
||||||
|
|
||||||
# - name: Set Up Container Image Tags for zrok Access Container
|
|
||||||
# env:
|
|
||||||
# RELEASE_REPO: openziti/zrok-access
|
|
||||||
# ZROK_VERSION: ${{ steps.semver.outputs.zrok_semver }}
|
|
||||||
# id: tagprep_access
|
|
||||||
# run: |
|
|
||||||
# DOCKER_TAGS=""
|
|
||||||
# DOCKER_TAGS="${RELEASE_REPO}:${ZROK_VERSION},${RELEASE_REPO}:latest"
|
|
||||||
# echo "DEBUG: DOCKER_TAGS=${DOCKER_TAGS}"
|
|
||||||
# echo DOCKER_TAGS="${DOCKER_TAGS}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
# - name: Build & Push Multi-Platform zrok Access Container Image to Hub
|
|
||||||
# uses: docker/build-push-action@v3
|
|
||||||
# with:
|
|
||||||
# builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
# context: ${{ github.workspace }}/docker/images/zrok-access/
|
|
||||||
# platforms: linux/amd64,linux/arm64
|
|
||||||
# tags: ${{ steps.tagprep_access.outputs.DOCKER_TAGS }}
|
|
||||||
# build-args: |
|
|
||||||
# ZROK_VERSION=${{ env.ZROK_VERSION }}
|
|
||||||
# push: true
|
|
||||||
|
102
.github/workflows/release.yml
vendored
102
.github/workflows/release.yml
vendored
@ -9,6 +9,11 @@ on:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
|
env:
|
||||||
|
ZITI_DEB_PROD_REPO: ${{ vars.ZITI_DEB_PROD_REPO || 'zitipax-openziti-deb-stable' }}
|
||||||
|
ZITI_RPM_PROD_REPO: ${{ vars.ZITI_RPM_PROD_REPO || 'zitipax-openziti-rpm-stable' }}
|
||||||
|
JFROG_CLI_VERSION: ${{ vars.JFROG_CLI_VERSION || '2.50.4' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux-amd64:
|
build-linux-amd64:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
@ -39,7 +44,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CI: "true"
|
CI: "true"
|
||||||
|
|
||||||
- uses: goreleaser/goreleaser-action@v2
|
- uses: goreleaser/goreleaser-action@v5
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: latest
|
version: latest
|
||||||
@ -52,6 +57,34 @@ jobs:
|
|||||||
name: release-builds
|
name: release-builds
|
||||||
path: ./dist/*.gz
|
path: ./dist/*.gz
|
||||||
|
|
||||||
|
- name: Configure jFrog CLI
|
||||||
|
uses: jfrog/setup-jfrog-cli@v3
|
||||||
|
with:
|
||||||
|
version: ${{ env.JFROG_CLI_VERSION }}
|
||||||
|
env:
|
||||||
|
JF_ENV_1: ${{ secrets.ZITI_ARTIFACTORY_CLI_CONFIG_PACKAGE_UPLOAD }}
|
||||||
|
|
||||||
|
- name: Upload RPM to Artifactory release repo
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
for RPM in ./dist/*.rpm; do
|
||||||
|
echo "INFO: Uploading $RPM"
|
||||||
|
jf rt upload --recursive=false --flat=true \
|
||||||
|
"$RPM" \
|
||||||
|
${{ env.ZITI_RPM_PROD_REPO }}/redhat/x86_64/
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Upload DEB to Artifactory release repo
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
for DEB in ./dist/*.deb; do
|
||||||
|
echo "INFO: Uploading $DEB"
|
||||||
|
jf rt upload --recursive=false --flat=true \
|
||||||
|
--deb=debian/main/amd64 \
|
||||||
|
"$DEB" \
|
||||||
|
${{ env.ZITI_DEB_PROD_REPO }}/pool/zrok/amd64/
|
||||||
|
done
|
||||||
|
|
||||||
build-linux-arm64:
|
build-linux-arm64:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
@ -94,6 +127,34 @@ jobs:
|
|||||||
name: release-builds
|
name: release-builds
|
||||||
path: ./dist/*.gz
|
path: ./dist/*.gz
|
||||||
|
|
||||||
|
- name: Configure jFrog CLI
|
||||||
|
uses: jfrog/setup-jfrog-cli@v3
|
||||||
|
with:
|
||||||
|
version: ${{ env.JFROG_CLI_VERSION }}
|
||||||
|
env:
|
||||||
|
JF_ENV_1: ${{ secrets.ZITI_ARTIFACTORY_CLI_CONFIG_PACKAGE_UPLOAD }}
|
||||||
|
|
||||||
|
- name: Upload RPM to Artifactory release repo
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
for RPM in ./dist/*.rpm; do
|
||||||
|
echo "INFO: Uploading $RPM"
|
||||||
|
jf rt upload --recursive=false --flat=true \
|
||||||
|
"$RPM" \
|
||||||
|
${{ env.ZITI_RPM_PROD_REPO }}/redhat/aarch64/
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Upload DEB to Artifactory release repo
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
for DEB in ./dist/*.deb; do
|
||||||
|
echo "INFO: Uploading $DEB"
|
||||||
|
jf rt upload --recursive=false --flat=true \
|
||||||
|
--deb=debian/main/arm64 \
|
||||||
|
"$DEB" \
|
||||||
|
${{ env.ZITI_DEB_PROD_REPO }}/pool/zrok/arm64/
|
||||||
|
done
|
||||||
|
|
||||||
build-linux-arm:
|
build-linux-arm:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
@ -136,7 +197,36 @@ jobs:
|
|||||||
name: release-builds
|
name: release-builds
|
||||||
path: ./dist/*.gz
|
path: ./dist/*.gz
|
||||||
|
|
||||||
|
- name: Configure jFrog CLI
|
||||||
|
uses: jfrog/setup-jfrog-cli@v3
|
||||||
|
with:
|
||||||
|
version: ${{ env.JFROG_CLI_VERSION }}
|
||||||
|
env:
|
||||||
|
JF_ENV_1: ${{ secrets.ZITI_ARTIFACTORY_CLI_CONFIG_PACKAGE_UPLOAD }}
|
||||||
|
|
||||||
|
- name: Upload RPM to Artifactory release repo
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
for RPM in ./dist/*.rpm; do
|
||||||
|
echo "INFO: Uploading $RPM"
|
||||||
|
jf rt upload --recursive=false --flat=true \
|
||||||
|
"$RPM" \
|
||||||
|
${{ env.ZITI_RPM_PROD_REPO }}/redhat/armv7/
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Upload DEB to Artifactory release repo
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
for DEB in ./dist/*.deb; do
|
||||||
|
echo "INFO: Uploading $DEB"
|
||||||
|
jf rt upload --recursive=false --flat=true \
|
||||||
|
--deb=debian/main/armv7 \
|
||||||
|
"$DEB" \
|
||||||
|
${{ env.ZITI_DEB_PROD_REPO }}/pool/zrok/armv7/
|
||||||
|
done
|
||||||
|
|
||||||
build-darwin:
|
build-darwin:
|
||||||
|
if: github.repository_owner == 'openziti' || vars.ZROK_SKIP_MACOS_BUILD == 'false'
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: import distribution cert
|
- name: import distribution cert
|
||||||
@ -184,6 +274,7 @@ jobs:
|
|||||||
path: ./dist/*.gz
|
path: ./dist/*.gz
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
|
if: github.repository_owner == 'openziti' || vars.ZROK_SKIP_WINDOWS_BUILD == 'false'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: sudo apt update
|
- run: sudo apt update
|
||||||
@ -226,6 +317,15 @@ jobs:
|
|||||||
path: ./dist/*.gz
|
path: ./dist/*.gz
|
||||||
|
|
||||||
publish-release:
|
publish-release:
|
||||||
|
# allow skipped but not failed
|
||||||
|
if: ${{
|
||||||
|
!cancelled()
|
||||||
|
&& (needs.build-linux-amd64.result == 'success' || needs.build-linux-amd64.result == 'skipped')
|
||||||
|
&& (needs.build-linux-arm.result == 'success' || needs.build-linux-amd.result == 'skipped')
|
||||||
|
&& (needs.build-linux-arm64.result == 'success' || needs.build-linux-amd64.result == 'skipped')
|
||||||
|
&& (needs.build-darwin.result == 'success' || needs.build-darwin.result == 'skipped')
|
||||||
|
&& (needs.build-windows.result == 'success' || needs.build-windows.result == 'skipped')
|
||||||
|
}}
|
||||||
needs: [build-linux-amd64, build-linux-arm, build-linux-arm64, build-darwin, build-windows]
|
needs: [build-linux-amd64, build-linux-arm, build-linux-arm64, build-darwin, build-windows]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -13,3 +13,47 @@ builds:
|
|||||||
- arm64
|
- arm64
|
||||||
goarm:
|
goarm:
|
||||||
- 8
|
- 8
|
||||||
|
|
||||||
|
nfpms:
|
||||||
|
- package_name: zrok
|
||||||
|
id: zrok-cli
|
||||||
|
vendor: NetFoundry
|
||||||
|
homepage: https://zrok.io/
|
||||||
|
maintainer: support@zrok.io
|
||||||
|
description: |-
|
||||||
|
zrok is a next-generation sharing platform, designed to make sharing network and file resources simple and
|
||||||
|
secure.
|
||||||
|
license: Apache 2.0
|
||||||
|
|
||||||
|
# Build IDs for the builds you want to create NFPM packages for.
|
||||||
|
builds:
|
||||||
|
- zrok-armv8
|
||||||
|
|
||||||
|
# Formats to be generated.
|
||||||
|
formats:
|
||||||
|
- deb
|
||||||
|
- rpm
|
||||||
|
|
||||||
|
# {{ .ConventionalFileName }} satisfies the RPM name convention.
|
||||||
|
file_name_template: "{{ .ConventionalFileName }}"
|
||||||
|
|
||||||
|
# Umask to be used on files without explicit mode set. (overridable)
|
||||||
|
umask: 0o002
|
||||||
|
|
||||||
|
# Package version within this release version.
|
||||||
|
release: 1
|
||||||
|
|
||||||
|
# Section.
|
||||||
|
section: default
|
||||||
|
|
||||||
|
# Priority.
|
||||||
|
priority: optional
|
||||||
|
|
||||||
|
# GoReleaser will automatically add the binaries here
|
||||||
|
bindir: /opt/openziti/bin
|
||||||
|
|
||||||
|
# Contents to add to the package.
|
||||||
|
contents:
|
||||||
|
- src: /opt/openziti/bin/zrok
|
||||||
|
dst: /usr/bin/zrok
|
||||||
|
type: "symlink"
|
||||||
|
@ -12,4 +12,48 @@ builds:
|
|||||||
goarch:
|
goarch:
|
||||||
- arm
|
- arm
|
||||||
goarm:
|
goarm:
|
||||||
- 7
|
- 7
|
||||||
|
|
||||||
|
nfpms:
|
||||||
|
- package_name: zrok
|
||||||
|
id: zrok-cli
|
||||||
|
vendor: NetFoundry
|
||||||
|
homepage: https://zrok.io/
|
||||||
|
maintainer: support@zrok.io
|
||||||
|
description: |-
|
||||||
|
zrok is a next-generation sharing platform, designed to make sharing network and file resources simple and
|
||||||
|
secure.
|
||||||
|
license: Apache 2.0
|
||||||
|
|
||||||
|
# Build IDs for the builds you want to create NFPM packages for.
|
||||||
|
builds:
|
||||||
|
- zrok-armv7
|
||||||
|
|
||||||
|
# Formats to be generated.
|
||||||
|
formats:
|
||||||
|
- deb
|
||||||
|
- rpm
|
||||||
|
|
||||||
|
# {{ .ConventionalFileName }} satisfies the RPM name convention.
|
||||||
|
file_name_template: "{{ .ConventionalFileName }}"
|
||||||
|
|
||||||
|
# Umask to be used on files without explicit mode set. (overridable)
|
||||||
|
umask: 0o002
|
||||||
|
|
||||||
|
# Package version within this release version.
|
||||||
|
release: 1
|
||||||
|
|
||||||
|
# Section.
|
||||||
|
section: default
|
||||||
|
|
||||||
|
# Priority.
|
||||||
|
priority: optional
|
||||||
|
|
||||||
|
# GoReleaser will automatically add the binaries here
|
||||||
|
bindir: /opt/openziti/bin
|
||||||
|
|
||||||
|
# Contents to add to the package.
|
||||||
|
contents:
|
||||||
|
- src: /opt/openziti/bin/zrok
|
||||||
|
dst: /usr/bin/zrok
|
||||||
|
type: "symlink"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
builds:
|
builds:
|
||||||
- main: ./cmd/zrok
|
- id: zrok-amd64
|
||||||
|
main: ./cmd/zrok
|
||||||
binary: zrok
|
binary: zrok
|
||||||
ldflags: "-s -w -X github.com/openziti/zrok/build.Version={{.Tag}} -X github.com/openziti/zrok/build.Hash={{.ShortCommit}}"
|
ldflags: "-s -w -X github.com/openziti/zrok/build.Version={{.Tag}} -X github.com/openziti/zrok/build.Hash={{.ShortCommit}}"
|
||||||
env:
|
env:
|
||||||
@ -8,3 +9,47 @@ builds:
|
|||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
|
|
||||||
|
nfpms:
|
||||||
|
- package_name: zrok
|
||||||
|
id: zrok-cli
|
||||||
|
vendor: NetFoundry
|
||||||
|
homepage: https://zrok.io/
|
||||||
|
maintainer: support@zrok.io
|
||||||
|
description: |-
|
||||||
|
zrok is a next-generation sharing platform, designed to make sharing network and file resources simple and
|
||||||
|
secure.
|
||||||
|
license: Apache 2.0
|
||||||
|
|
||||||
|
# Build IDs for the builds you want to create NFPM packages for.
|
||||||
|
builds:
|
||||||
|
- zrok-amd64
|
||||||
|
|
||||||
|
# Formats to be generated.
|
||||||
|
formats:
|
||||||
|
- deb
|
||||||
|
- rpm
|
||||||
|
|
||||||
|
# {{ .ConventionalFileName }} satisfies the RPM name convention.
|
||||||
|
file_name_template: "{{ .ConventionalFileName }}"
|
||||||
|
|
||||||
|
# Umask to be used on files without explicit mode set. (overridable)
|
||||||
|
umask: 0o002
|
||||||
|
|
||||||
|
# Package version within this release version.
|
||||||
|
release: 1
|
||||||
|
|
||||||
|
# Section.
|
||||||
|
section: default
|
||||||
|
|
||||||
|
# Priority.
|
||||||
|
priority: optional
|
||||||
|
|
||||||
|
# GoReleaser will automatically add the binaries here
|
||||||
|
bindir: /opt/openziti/bin
|
||||||
|
|
||||||
|
# Contents to add to the package.
|
||||||
|
contents:
|
||||||
|
- src: /opt/openziti/bin/zrok
|
||||||
|
dst: /usr/bin/zrok
|
||||||
|
type: "symlink"
|
||||||
|
@ -8,7 +8,7 @@ CHANGE: Updated the code signing and notarization process for macos binaries. Th
|
|||||||
|
|
||||||
FEATURE: `zrok` Drives "Phase 1" (`p1`) functionality included in this release. This includes new `--backend-mode drive`, which accepts a folder path as a target. A `drive` share can be mounted as a network drive on Windows, macOS, and Linux, allowing full read/write access from all applications on those systems (https://github.com/openziti/zrok/issues/218) Subsequent releases will address CLI use cases and provide further refinements to the overall approach.
|
FEATURE: `zrok` Drives "Phase 1" (`p1`) functionality included in this release. This includes new `--backend-mode drive`, which accepts a folder path as a target. A `drive` share can be mounted as a network drive on Windows, macOS, and Linux, allowing full read/write access from all applications on those systems (https://github.com/openziti/zrok/issues/218) Subsequent releases will address CLI use cases and provide further refinements to the overall approach.
|
||||||
|
|
||||||
FEATURE: Docker Compose project for a reserved public share in docker/compose/zrok-public-share-reserved/compose.yml is described in the [public share guide](https://docs.zrok.io/docs/guides/docker-share/docker_public_share_guide/).
|
FEATURE: Docker Compose project for a reserved public share in docker/compose/zrok-public-reserved/compose.yml is described in the [public share guide](https://docs.zrok.io/docs/guides/docker-share/docker_public_share_guide/).
|
||||||
|
|
||||||
## v0.4.13
|
## v0.4.13
|
||||||
|
|
||||||
|
17
RELEASING.md
Normal file
17
RELEASING.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
# Releasing zrok
|
||||||
|
|
||||||
|
## Manual Steps
|
||||||
|
|
||||||
|
1. Create a semver Git tag on main starting with a 'v' character.
|
||||||
|
1. Push the tag to GitHub.
|
||||||
|
1. Wait for automated steps to complete.
|
||||||
|
1. In GitHub Releases, edit the draft release as needed and finalize.
|
||||||
|
|
||||||
|
## Automated Steps
|
||||||
|
|
||||||
|
1. The Release workflow is triggered by creating the Git tag and
|
||||||
|
1. uploads Linux packages to Artifactory and
|
||||||
|
1. drafts a release in GitHub Releases.
|
||||||
|
1. The Publish Container Images workflow is triggered by the Release event and
|
||||||
|
1. pushes Docker images to Docker Hub.
|
@ -5,7 +5,7 @@ FROM debian:bullseye-slim
|
|||||||
#
|
#
|
||||||
|
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
ARG golang_version=1.20
|
ARG golang_version=1.21.3
|
||||||
ARG go_distribution_file=go${golang_version}.linux-${TARGETARCH}.tar.gz
|
ARG go_distribution_file=go${golang_version}.linux-${TARGETARCH}.tar.gz
|
||||||
ARG go_path=/usr/share/go
|
ARG go_path=/usr/share/go
|
||||||
ARG go_root=/usr/local/go
|
ARG go_root=/usr/local/go
|
||||||
|
Loading…
x
Reference in New Issue
Block a user