Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Jenkins build job "cyberduck-release-windows" to GitHub Actions #15555

Draft
wants to merge 86 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
86 commits
Select commit Hold shift click to select a range
490a3c2
set distributionManagement repos to local
RaveenaRamany Dec 10, 2023
ccabc97
Merge pull request #1 from RaveenaRamany/features/migration-cyberduck…
RaveenaRamany Dec 10, 2023
7c6015a
Add workflow cyberduck-release-windows
RaveenaRamany Dec 10, 2023
8795297
Fix missing transforms
RaveenaRamany Dec 10, 2023
5bdd666
update Repository secrets
RaveenaRamany Dec 10, 2023
70e22c7
Fix secret names
RaveenaRamany Dec 10, 2023
b05f3ef
Change runner to github hosted windows runner
RaveenaRamany Dec 10, 2023
c7ad044
Fix typo in secret name
RaveenaRamany Dec 10, 2023
e9297de
Merge pull request #2 from RaveenaRamany/convert-cyberduck-release-wi…
RaveenaRamany Dec 10, 2023
f67f6ef
Add option for git tag
RaveenaRamany Dec 10, 2023
3404b02
Merge pull request #3 from RaveenaRamany/features/migration-cyberduck…
RaveenaRamany Dec 10, 2023
547c0b8
Fix WORKSPACE variable
RaveenaRamany Dec 10, 2023
9f7cd51
Merge pull request #4 from RaveenaRamany/features/migration-cyberduck…
RaveenaRamany Dec 10, 2023
0689757
Fix sparkle updater certificate path
RaveenaRamany Dec 10, 2023
67679c0
Add quotes
RaveenaRamany Dec 10, 2023
60255dc
env test
RaveenaRamany Dec 10, 2023
5cbf6d6
env test
RaveenaRamany Dec 10, 2023
07fed6c
env test
RaveenaRamany Dec 10, 2023
7a6faaa
Fix environment variables
RaveenaRamany Dec 10, 2023
9a129dd
Fix maven-settings-action
RaveenaRamany Dec 10, 2023
e175cf7
Fix maven settings.xml
RaveenaRamany Dec 10, 2023
52633d0
Add workflow cyberduck-release-windows-chocolatey
RaveenaRamany Dec 11, 2023
b415011
Merge pull request #5 from RaveenaRamany/convert-cyberduck-release-wi…
RaveenaRamany Dec 11, 2023
dc9cbb6
comment env-key
RaveenaRamany Dec 11, 2023
4750959
Update cyberduck-release-windows-chocolatey.yml
RaveenaRamany Dec 12, 2023
06ca975
fix Variable GITHUB_REPOSITROY
RaveenaRamany Dec 14, 2023
40c20d8
update runs-on
RaveenaRamany Dec 14, 2023
6132d45
Merge branch 'iterate-ch:master' into master
RaveenaRamany Dec 14, 2023
1e30dc4
Merge pull request #6 from RaveenaRamany/features/migration-cyberduck…
RaveenaRamany Dec 14, 2023
66e1d6a
customize upload
RaveenaRamany Dec 16, 2023
fb97d74
change credential values
RaveenaRamany Dec 16, 2023
89ae06d
update aws bucket location
RaveenaRamany Dec 16, 2023
14c4335
update server.xml credentials
RaveenaRamany Dec 16, 2023
19b212f
remove interactivemode setting
RaveenaRamany Dec 16, 2023
0402597
remove interactive mode & add debugging
RaveenaRamany Dec 16, 2023
42aff91
show server.xml
RaveenaRamany Dec 16, 2023
a88efc1
test server.xml
RaveenaRamany Dec 16, 2023
0143980
comment out server.xml generation
RaveenaRamany Dec 16, 2023
d4cd2c1
comment out servers.xml
RaveenaRamany Dec 16, 2023
a965c78
settings.xml test
RaveenaRamany Dec 16, 2023
015c434
fix setup-java overwriting settings.xml
RaveenaRamany Dec 16, 2023
66010a2
change description of setup-java action
RaveenaRamany Dec 16, 2023
ef7cfa9
output settings.xml
RaveenaRamany Dec 16, 2023
cf60354
change settings.xml path to default
RaveenaRamany Dec 16, 2023
d2dec59
remove output of settings.xml
RaveenaRamany Dec 16, 2023
4133db3
change settings.xml path to github.workspace
RaveenaRamany Dec 16, 2023
c04c677
output content of settings.xml
RaveenaRamany Dec 16, 2023
5117f28
remove output of settings.xml
RaveenaRamany Dec 16, 2023
281b117
delete debug modus
RaveenaRamany Dec 16, 2023
9a33b95
remove space
RaveenaRamany Dec 16, 2023
97b2974
maven enable debugging
RaveenaRamany Dec 17, 2023
8c9d9d9
enable fetching all history
RaveenaRamany Dec 18, 2023
54e8022
Add MSBuild.exe to PATH
RaveenaRamany Dec 18, 2023
4d8e6c9
Install build requirement Bonjour Print Services
RaveenaRamany Dec 18, 2023
dc9ac7c
Move build requirements installation before build execution
RaveenaRamany Dec 18, 2023
bf31d55
Skip package signing
RaveenaRamany Dec 18, 2023
0b49d4f
Skip package signing
RaveenaRamany Dec 18, 2023
05f7642
Install cygwin to provide sh and openssl
RaveenaRamany Dec 18, 2023
9529548
Only build cyberduck for windows
RaveenaRamany Dec 18, 2023
fcf4033
Only build Cyberduck.Native
RaveenaRamany Dec 18, 2023
e64eb1f
Build all projects
RaveenaRamany Dec 18, 2023
92ff5b4
choco yes to all
RaveenaRamany Dec 19, 2023
f0a745c
install openssl
RaveenaRamany Dec 19, 2023
f30c2ae
Only build core/native
RaveenaRamany Dec 19, 2023
d1cd6e0
only build windows module
RaveenaRamany Dec 19, 2023
9ab78ab
add install Cmake
RaveenaRamany Dec 19, 2023
fb755bd
Add cmake to PATH
RaveenaRamany Dec 19, 2023
3a53a0f
add cpack using chocolatey
RaveenaRamany Dec 20, 2023
b9ec705
Remove unnecessary CPack (CMake) build requirment and make yaml more …
RaveenaRamany Dec 20, 2023
5b1089a
Build all modules
RaveenaRamany Dec 20, 2023
9109341
output env Path
RaveenaRamany Dec 20, 2023
b67150b
Refresh env for troubleshooting unknown command duck
RaveenaRamany Dec 20, 2023
9ad1c06
Skip building for AWS upload troubleshooting
RaveenaRamany Dec 20, 2023
8eb3621
Display duck install path
RaveenaRamany Dec 20, 2023
cd03e5e
Remove bonjour & openssl install for testing behaviour of windows pat…
RaveenaRamany Dec 20, 2023
1fe7fee
Add duck cli to GitHub runner persistent path
RaveenaRamany Dec 20, 2023
9d0b815
Switch powershell version to 6
RaveenaRamany Dec 20, 2023
5928617
Refactor adding variable to persistent GitHub PATH
RaveenaRamany Dec 20, 2023
bf459a0
Switch to powershell core version 6
RaveenaRamany Dec 20, 2023
7a4e22b
Import revreshenv helper
RaveenaRamany Dec 20, 2023
f93dbf3
output GitHub env
RaveenaRamany Dec 20, 2023
2218f53
Show directories under GITHUB_WORKSPACE
RaveenaRamany Dec 20, 2023
f6091a1
Output GITHUB_PATH
RaveenaRamany Dec 20, 2023
ccdab04
Only test duck install
RaveenaRamany Dec 20, 2023
daf2993
Writeback current PATH containing cyberduck
RaveenaRamany Dec 20, 2023
ec9f070
Writeback current PATH after installing packages
RaveenaRamany Dec 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Writeback current PATH after installing packages
  • Loading branch information
RaveenaRamany committed Dec 21, 2023
commit ec9f070d731213f628045767a20733f9cd049f85
128 changes: 64 additions & 64 deletions .github/workflows/cyberduck-release-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,81 31,81 @@ jobs:
end
end

# - name: checkout
# uses: actions/[email protected]
# with:
# fetch-depth: '0'
# ref: ${{ inputs.GIT_TAG }}

# - name: Copy Sparkle Updater Private Key (DSA)
# shell: pwsh
# env:
# SPARKLE_UPDATER_PK: ${{ secrets.WIN_SPARKLE_UPDATER_PRIVATE_KEY }}
# run: ${env:SPARKLE_UPDATER_PK} > "${env:GITHUB_WORKSPACE}\www\update\private.pem"

# - name: Generate maven settings.xml
# uses: s4u/[email protected]
# with:
# path: "${{ github.workspace }}/settings.xml"
# servers: |
# [{
# "id": "custom-ip5-maven.cyberduck.io-release",
# "username": "${{ secrets.AWS_CUSTOM_IP5_ACCESS_KEY_DEPLOYMENT }}",
# "password": "${{ secrets.AWS_CUSTOM_IP5_SECRET_KEY_DEPLOYMENT }}"
# },
# {
# "id": "custom-ip5-maven.cyberduck.io-snapshot",
# "username": "${{ secrets.AWS_CUSTOM_IP5_ACCESS_KEY_DEPLOYMENT }}",
# "password": "${{ secrets.AWS_CUSTOM_IP5_SECRET_KEY_DEPLOYMENT }}"
# },
# {
# "id": "maven.iterate.ch-release",
# "username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}",
# "password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}"
# },
# {
# "id": "maven.iterate.ch-snapshot",
# "username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}",
# "password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}"
# },
# {
# "id": "maven.cyberduck.io-release",
# "username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}",
# "password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}"
# },
# {
# "id": "maven.cyberduck.io-snapshot",
# "username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}",
# "password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}"
# }]

# - name: Set up JDK 17 and skip overwriting of settings.xml
# uses: actions/[email protected]
# with:
# distribution: 'temurin'
# java-version: '17'
# settings-path: "${{ github.workspace }}"
# overwrite-settings: false
- name: checkout
uses: actions/[email protected]
with:
fetch-depth: '0'
ref: ${{ inputs.GIT_TAG }}

- name: Copy Sparkle Updater Private Key (DSA)
shell: pwsh
env:
SPARKLE_UPDATER_PK: ${{ secrets.WIN_SPARKLE_UPDATER_PRIVATE_KEY }}
run: ${env:SPARKLE_UPDATER_PK} > "${env:GITHUB_WORKSPACE}\www\update\private.pem"

- name: Generate maven settings.xml
uses: s4u/[email protected]
with:
path: "${{ github.workspace }}/settings.xml"
servers: |
[{
"id": "custom-ip5-maven.cyberduck.io-release",
"username": "${{ secrets.AWS_CUSTOM_IP5_ACCESS_KEY_DEPLOYMENT }}",
"password": "${{ secrets.AWS_CUSTOM_IP5_SECRET_KEY_DEPLOYMENT }}"
},
{
"id": "custom-ip5-maven.cyberduck.io-snapshot",
"username": "${{ secrets.AWS_CUSTOM_IP5_ACCESS_KEY_DEPLOYMENT }}",
"password": "${{ secrets.AWS_CUSTOM_IP5_SECRET_KEY_DEPLOYMENT }}"
},
{
"id": "maven.iterate.ch-release",
"username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}",
"password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}"
},
{
"id": "maven.iterate.ch-snapshot",
"username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}",
"password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}"
},
{
"id": "maven.cyberduck.io-release",
"username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}",
"password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}"
},
{
"id": "maven.cyberduck.io-snapshot",
"username": "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}",
"password": "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}"
}]

- name: Set up JDK 17 and skip overwriting of settings.xml
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'
settings-path: "${{ github.workspace }}"
overwrite-settings: false

- name: Install upload requirement Cyberduck CLI using chocolatey
shell: pwsh
run: Import-Module "${env:ChocolateyInstall}\helpers\chocolateyProfile.psm1" && choco install duck -y && refreshenv && "${env:Path}" | Out-File -FilePath ${env:GITHUB_PATH} -Append
# run: Import-Module "${env:ChocolateyInstall}\helpers\chocolateyProfile.psm1" && choco install duck -y && refreshenv && Get-Command duck | Split-Path -Parent | Out-File -FilePath ${env:GITHUB_PATH} -Append

# - name: Install build requirement Bonjour Print Services for Windows (https://community.chocolatey.org/packages/bonjour)
# shell: pwsh
# run: choco install bonjour -y
- name: Install build requirement Bonjour Print Services for Windows (https://community.chocolatey.org/packages/bonjour)
shell: pwsh
run: Import-Module "${env:ChocolateyInstall}\helpers\chocolateyProfile.psm1" && choco install bonjour -y && refreshenv && "${env:Path}" | Out-File -FilePath ${env:GITHUB_PATH} -Append

# - name: Install build requirement openssl using chocolatey
# shell: pwsh
# run: choco install openssl -y
- name: Install build requirement openssl using chocolatey
shell: pwsh
run: Import-Module "${env:ChocolateyInstall}\helpers\chocolateyProfile.psm1" && choco install openssl -y && refreshenv && "${env:Path}" | Out-File -FilePath ${env:GITHUB_PATH} -Append

- name: Add MSBuild.exe to PATH
uses: microsoft/[email protected]

# - name: Run maven
# # Todo: Remove "-e" and "-DskipSign=true" Options for production
# run: mvn clean deploy -DskipSign=true -e --settings ${env:GITHUB_WORKSPACE}/settings.xml -DskipTests -D"sparkle.feed="
- name: Run maven
# Todo: Remove "-e" and "-DskipSign=true" Options for production
run: mvn clean deploy -DskipSign=true -e --settings ${env:GITHUB_WORKSPACE}/settings.xml -DskipTests -D"sparkle.feed="

- name: Upload files to Rackspace
shell: pwsh
Expand Down