Skip to content

Commit

Permalink
deploy to jfrog
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Apr 8, 2021
1 parent 6dd88d5 commit f0ec3dd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: ci
on: [push, pull_request]
env:
PACKAGE_NAME: ${{ github.event.repository.name }}
MYCI_BINTRAY_USERNAME: igagis
MYCI_BINTRAY_API_KEY: ${{ secrets.MYCI_BINTRAY_API_KEY }}
MYCI_JFROG_USERNAME: [email protected]
MYCI_JFROG_PASSWORD: ${{ secrets.MYCI_JFROG_PASSWORD }}
MYCI_GIT_USERNAME: igagis
MYCI_GIT_PASSWORD: ${{ secrets.MYCI_GIT_ACCESS_TOKEN }}
jobs:
Expand All @@ -27,9 +27,10 @@ jobs:
- name: add cppfw deb repo
uses: myci-actions/add-deb-repo@master
with:
repo: deb http://dl.bintray.com/cppfw/${{ matrix.os }} ${{ matrix.codename }} main
repo: deb https://cppfw.jfrog.io/artifactory/${{ matrix.os }} ${{ matrix.codename }} main
repo-name: cppfw
keys: 379CE192D401AB61
key-server: https://cppfw.jfrog.io/artifactory/api/gpg/key/public
keys: 4A949240F79AD8027C6CA2F4953AE777616ADEDF
- name: install ci tools
run: |
# configure timezone to avoid 'tzdata' package to require user interaction during installation (needed for ubuntu:focal)
Expand All @@ -46,14 +47,14 @@ jobs:
- name: build
run: dpkg-buildpackage --unsigned-source --unsigned-changes
- name: deploy deb packages
run: myci-deploy-debian-bintray.sh --owner cppfw --repo ${{ matrix.os }} --distro ${{ matrix.codename }} --component main --package $PACKAGE_NAME ../lib$(cat name.txt)*_${PACKAGE_VERSION}_*.deb
run: myci-deploy-debian-jfrog.sh --domain cppfw --repo ${{ matrix.os }} --distro ${{ matrix.codename }} --component main ../lib$(cat name.txt)*_${PACKAGE_VERSION}_*.deb
if: matrix.package_type == 'deb' && startsWith(github.ref, 'refs/tags/')
##### macosx #####
macosx:
runs-on: macos-latest
steps:
- name: git clone
uses: actions/checkout@main
uses: actions/checkout@v2
- name: add cppfw tap
run: |
brew tap cppfw/tap
Expand All @@ -80,7 +81,7 @@ jobs:
- name: install ci tools
run: brew install myci
- name: git clone
uses: actions/checkout@main
uses: actions/checkout@v2
- name: set PACKAGE_VERSION
uses: myci-actions/export-env-var@master
with: {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog)}
Expand All @@ -99,21 +100,22 @@ jobs:
- name: create package
run: myci-create-zip-package.sh --headers-dir src/agg/include///agg --file xcode/build/lib$PACKAGE_NAME.a///lib/ios --file LICENSE $PACKAGE_NAME-$PACKAGE_VERSION.zip
- name: deploy
run: myci-deploy-cocoapods.sh --repo cppfw --version $PACKAGE_VERSION --bintray-owner cppfw --bintray-repo cocoapods --package-file $PACKAGE_NAME-$PACKAGE_VERSION.zip cocoapods/$PACKAGE_NAME.podspec.in
run: myci-deploy-cocoapods-jfrog.sh --repo cppfw --version $PACKAGE_VERSION --domain cppfw --jfrog-repo cocoapods --package-file $PACKAGE_NAME-$PACKAGE_VERSION.zip cocoapods/$PACKAGE_NAME.podspec.in
if: startsWith(github.ref, 'refs/tags/')
##### android #####
android:
runs-on: ubuntu-latest
container: mingc/android-build-box:latest
steps:
- name: git clone
uses: actions/checkout@main
uses: actions/checkout@v2
- name: add cppfw deb repo
uses: myci-actions/add-deb-repo@master
with:
repo: deb http://dl.bintray.com/cppfw/$(lsb_release --id --short | tr '[:upper:]' '[:lower:]') $(lsb_release --codename --short) main
repo: deb https://cppfw.jfrog.io/artifactory/$(lsb_release --id --short | tr '[:upper:]' '[:lower:]') $(lsb_release --codename --short) main
repo-name: cppfw
keys: 379CE192D401AB61
key-server: https://cppfw.jfrog.io/artifactory/api/gpg/key/public
keys: 4A949240F79AD8027C6CA2F4953AE777616ADEDF
- name: install ci tools
run: apt install --assume-yes myci
- name: set PACKAGE_VERSION
Expand All @@ -126,7 +128,7 @@ jobs:
myci-apply-version.sh -v $PACKAGE_VERSION *.pom.in
myci-apply-version.sh -v $PACKAGE_VERSION *.aar.in --filename-only
- name: deploy
run: myci-deploy-maven-bintray.sh --owner cppfw --repo android --path io/github/cppfw --package $PACKAGE_NAME --version $PACKAGE_VERSION android/$PACKAGE_NAME-$PACKAGE_VERSION.aar
run: myci-deploy-maven-jfrog.sh --domain cppfw --repo android --path io/github/cppfw/$PACKAGE_NAME/$PACKAGE_VERSION android/$PACKAGE_NAME-$PACKAGE_VERSION.aar
if: startsWith(github.ref, 'refs/tags/')
##### msys2 #####
msys2:
Expand All @@ -151,13 +153,13 @@ jobs:
msys2-devel
mingw-w64-${{ matrix.arch }}-toolchain
- name: git clone
uses: actions/checkout@main
uses: actions/checkout@v2
- name: add cppfw pacman msys repo
uses: myci-actions/add-pacman-repo@master
with: {name: cppfw_msys, url: 'https://dl.bintray.com/cppfw/msys2/msys', shell: 'msys2 {0}'}
with: {name: cppfw_msys, url: 'https://cppfw.jfrog.io/artifactory/msys2/msys', shell: 'msys2 {0}'}
- name: add cppfw pacman ${{ matrix.repo }} repo
uses: myci-actions/add-pacman-repo@master
with: {name: 'cppfw_${{ matrix.repo }}', url: 'https://dl.bintray.com/cppfw/msys2/${{ matrix.repo }}', shell: 'msys2 {0}'}
with: {name: 'cppfw_${{ matrix.repo }}', url: 'https://cppfw.jfrog.io/artifactory/msys2/${{ matrix.repo }}', shell: 'msys2 {0}'}
- name: install ci tools
run: pacman -Sy --noconfirm myci
- name: prepare pacman package
Expand All @@ -171,7 +173,7 @@ jobs:
- name: deploy
run: |
for f in $(find msys2 -name "mingw-w64-${{ matrix.arch }}-$PACKAGE_NAME-*-any.pkg.*"); do
myci-deploy-pacman-bintray.sh --owner cppfw --repo msys2 --path ${{ matrix.repo }} --database cppfw_${{ matrix.repo }} $f
myci-deploy-pacman-jfrog.sh --domain cppfw --repo msys2 --path ${{ matrix.repo }} --database cppfw_${{ matrix.repo }} $f
done
if: startsWith(github.ref, 'refs/tags/')
##### msvs #####
Expand All @@ -182,7 +184,7 @@ jobs:
shell: powershell
steps:
- name: git clone
uses: actions/checkout@main
uses: actions/checkout@v2
- name: install CoAPP tools
uses: myci-actions/install-coapp-tools@master
- name: nuget update
Expand Down
2 changes: 1 addition & 1 deletion cocoapods/agg.podspec.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Pod::Spec.new do |s|
s.platform = :ios
s.ios.deployment_target = '8.0'

s.source = { :http => "https://dl.bintray.com/cppfw/cocoapods/#{s.name}/#{s.version}/#{s.name}-#{s.version}.zip" }
s.source = { :http => "https://cppfw.jfrog.io/artifactory/cocoapods/#{s.name}-#{s.version}.zip" }

s.source_files = "include/**/*.{hpp,h}"
s.header_mappings_dir = "include"
Expand Down

0 comments on commit f0ec3dd

Please sign in to comment.