File tree Expand file tree Collapse file tree 2 files changed +25
-7
lines changed
actions/release-server-sync Expand file tree Collapse file tree 2 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ inputs:
2020 server_key :
2121 description : The SSH key to use for authentication.
2222 required : true
23+ server_aptly_config :
24+ description : The Aptly config file to use for all repositories.
25+ required : false
26+ default : " /etc/aptly.conf"
27+ ref :
28+ description : The Git commit, branch or tag to checkout for the packaging code.
29+ required : false
30+ default : " master"
2331
2432runs :
2533 using : " composite"
@@ -61,10 +69,19 @@ runs:
6169 USERNAME : ${{ inputs.server_username }}
6270 shell : bash
6371
64- # We could also automate the final step here eventually to get the packages "live"
65- # - name: Publish on build server
66- # run: |
67- # ssh $USERNAME@$HOST /bin/bash /home/$USERNAME/publish_all.sh "$VERSION"
68- # env:
69- # VERSION: ${{ inputs.version }}
70- # shell: bash
72+ - name : Checkout code
73+ uses : actions/checkout@v3
74+ with :
75+ ref : ${{ inputs.ref }}
76+
77+ # Automate the final step here to get the packages "live"
78+ - name : Publish on build server
79+ run : |
80+ scp ./packaging/server/publish-all.sh $USERNAME@$HOST:/home/$USERNAME/publish-all.sh
81+ ssh $USERNAME@$HOST APTLY_CONFIG="$APTLY_CONFIG" /bin/bash /home/$USERNAME/publish-all.sh "$VERSION"
82+ env :
83+ VERSION : ${{ inputs.version }}
84+ HOST : ${{ inputs.server_hostname }}
85+ USERNAME : ${{ inputs.server_username }}
86+ APTLY_CONFIG : ${{ inputs.server_aptly_config || '/etc/aptly.conf' }}
87+ shell : bash
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ jobs:
137137 server_hostname : ${{ secrets.FLUENTBITIO_HOST }}
138138 server_username : ${{ secrets.FLUENTBITIO_USERNAME }}
139139 server_key : ${{ secrets.FLUENTBITIO_SSHKEY }}
140+ server_aptly_config : ${{ secrets.FLUENTBITIO_APTLY_CONFIG }}
140141
141142 # Simple skopeo copy jobs to transfer image from staging to release registry with optional GPG key signing.
142143 # Unfortunately skopeo currently does not support Cosign: https://github.com/containers/skopeo/issues/1533
You can’t perform that action at this time.
0 commit comments