-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
430 additions
and
565 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,14 @@ name: Promote Downstream Releases | |
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [released] # this release event activity type excludes prereleases | ||
|
||
# cancel older, redundant runs of same workflow on same branch | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
RELEASE_REF: ${{ github.ref}} | ||
|
||
jobs: | ||
wait_for_release: | ||
name: Wait for Release Builds to Succeed | ||
|
@@ -22,7 +21,7 @@ jobs: | |
- name: Wait for all checks on this ref | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ env.RELEASE_REF }} | ||
ref: ${{ github.ref }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
# seconds between polling the checks api for job statuses | ||
wait-interval: 20 | ||
|
@@ -39,10 +38,12 @@ jobs: | |
- name: Parse Release Version | ||
id: parse | ||
shell: bash | ||
env: | ||
RELEASE_REF: ${{ github.ref_name }} | ||
run: | | ||
if [[ "${RELEASE_REF}" =~ ^refs\/tags\/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
if [[ "${RELEASE_REF}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
echo "RELEASE_REF=${RELEASE_REF} is a semver release ref" | ||
echo "version=${RELEASE_REF#refs/tags/v}" | tee -a $GITHUB_OUTPUT | ||
echo "version=${RELEASE_REF#v}" | tee -a $GITHUB_OUTPUT | ||
else | ||
echo "RELEASE_REF=${RELEASE_REF} is not a semver release ref" >&2 | ||
exit 1 | ||
|
@@ -83,14 +84,14 @@ jobs: | |
username: ${{ vars.DOCKER_HUB_API_USER || secrets.DOCKER_HUB_API_USER }} | ||
password: ${{ secrets.DOCKER_HUB_API_TOKEN }} | ||
|
||
- name: Tag Latest zti-edge-tunnel | ||
- name: Tag Latest ziti-edge-tunnel | ||
shell: bash | ||
run: > | ||
docker buildx imagetools create --tag | ||
${{ env.ZITI_EDGE_TUNNEL_IMAGE }}:latest | ||
${{ env.ZITI_EDGE_TUNNEL_IMAGE }}:${{ needs.parse_version.outputs.version }} | ||
- name: Tag Latest zti-host | ||
- name: Tag Latest ziti-host | ||
shell: bash | ||
run: > | ||
docker buildx imagetools create --tag | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Test Deployments | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- release-v* | ||
pull_request: | ||
branches: | ||
- main | ||
- release-v* | ||
|
||
# cancel older, redundant runs of same workflow on same branch | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
docker-deployments: | ||
name: Test Docker Deployments | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Full Checkout to Allow CMake to Find Version with Git | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run the Compose Test Script | ||
shell: bash | ||
run: docker/docker.test.bash | ||
env: | ||
I_AM_ROBOT: 1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
volumes: | ||
ziti-host: | ||
|
||
services: | ||
ziti-host: | ||
image: ${ZITI_HOST_IMAGE:-openziti/ziti-host}:${ZITI_HOST_TAG:-latest} | ||
volumes: | ||
- ziti-host:/ziti-edge-tunnel | ||
environment: | ||
- ZITI_ENROLL_TOKEN |
Oops, something went wrong.