Skip to content

Commit

Permalink
push packages to artifactory again (#710)
Browse files Browse the repository at this point in the history
* check release event for prerelease

* ensure cmake version discovery works
  • Loading branch information
scareything committed Aug 18, 2023
1 parent fa8e369 commit 6898022
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@ jobs:
preset: linux-arm64-static-libssl

steps:
# only focal-20.04 has >= 2.18, which is required by actions/checkout to clone
# which enables cmake version discovery. remove this step when openziti:ziti-builder
# is upgraded to a version that contains git 2.18+
- name: install contemporary Git if Ubuntu
if: ${{ matrix.distro.name == 'ubuntu' }}
run: |
apt -y update
apt-get -y install software-properties-common
add-apt-repository -y ppa:git-core/ppa
apt -y update
apt -y install git
git --version
- name: checkout workspace
uses: actions/checkout@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ jobs:
if-no-files-found: error

- name: Configure jFrog CLI
if: ${{ github.event.release.published && startsWith(github.ref, 'refs/tags/v') }}
if: ${{ !github.event.release.prerelease && startsWith(github.ref, 'refs/tags/v') }}
uses: jfrog/setup-jfrog-cli@v3
env:
JF_ENV_1: ${{ secrets.ZITI_ARTIFACTORY_CLI_CONFIG_PACKAGE_UPLOAD }}

- name: Upload RPM to Artifactory with jFrog CLI
if: ${{ github.event.release.published && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'redhat' }}
if: ${{ !github.event.release.prerelease && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'redhat' }}
run: >
jf rt upload
./build/ziti-edge-tunnel-*.${{ matrix.distro.type }}
Expand All @@ -195,7 +195,7 @@ jobs:
--flat=true
- name: Upload DEB to Artifactory with jFrog CLI
if: ${{ github.event.release.published && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'ubuntu' }}
if: ${{ !github.event.release.prerelease && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'ubuntu' }}
run: >
jf rt upload
./build/ziti-edge-tunnel-*.${{ matrix.distro.type }}
Expand Down

0 comments on commit 6898022

Please sign in to comment.