@@ -178,20 +178,6 @@ jobs:
178178 asset_name : defguard-proxy-${{ env.VERSION }}-${{ matrix.target }}.deb
179179 asset_content_type : application/octet-stream
180180
181- - name : Install ruby with deb-s3
182- if : matrix.build == 'linux'
183- run : |
184- sudo apt-get install -y ruby
185- gem install deb-s3
186- echo "$(ruby -r rubygems -e 'puts Gem.user_dir')/bin" >> $GITHUB_PATH
187-
188- - name : Upload DEB to apt repository
189- if : matrix.build == 'linux'
190- run : |
191- COMPONENT=$([[ "${{ github.ref_name }}" == *"-"* ]] && echo "pre-release" || echo "release") # if tag contain "-" assume it's pre-release.
192-
193- deb-s3 upload -l --bucket=apt.defguard.net --access-key-id=${{ secrets.AWS_ACCESS_KEY_APT }} --secret-access-key=${{ secrets.AWS_SECRET_KEY_APT }} --s3-region=eu-north-1 --no-fail-if-exists --codename=trixie --component="$COMPONENT" defguard-proxy-${{ env.VERSION }}-${{ matrix.target }}.deb
194-
195181 - name : Build RPM package
196182 if : matrix.build == 'linux'
197183 uses : bpicode/github-action-fpm@master
@@ -209,39 +195,3 @@ jobs:
209195 asset_path : defguard-proxy-${{ env.VERSION }}-${{ matrix.target }}.rpm
210196 asset_name : defguard-proxy-${{ env.VERSION }}-${{ matrix.target }}.rpm
211197 asset_content_type : application/octet-stream
212-
213- apt-sign :
214- needs :
215- - build-binaries
216- runs-on :
217- - self-hosted
218- - Linux
219- - X64
220- strategy :
221- fail-fast : false
222- steps :
223- - name : Sign APT repository on trixie
224- run : |
225- export AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_APT }}
226- export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_KEY_APT }}
227- export AWS_REGION=eu-north-1
228- sudo apt update -y
229- sudo apt install -y awscli curl jq
230-
231- for DIST in trixie; do
232- aws s3 cp s3://apt.defguard.net/dists/${DIST}/Release .
233-
234- curl -X POST "${{ secrets.DEFGUARD_SIGNING_URL }}?signature_type=both" \
235- -H "Authorization: Bearer ${{ secrets.DEFGUARD_SIGNING_API_KEY }}" \
236- -F "file=@Release" \
237- -o response.json
238-
239- cat response.json | jq -r '.files["Release.gpg"].content' | base64 --decode > Release.gpg
240- cat response.json | jq -r '.files.Release.content' | base64 --decode > InRelease
241-
242- aws s3 cp Release.gpg s3://apt.defguard.net/dists/${DIST}/ --acl public-read
243- aws s3 cp InRelease s3://apt.defguard.net/dists/${DIST}/ --acl public-read
244-
245- done
246- (aws s3 ls s3://apt.defguard.net/dists/ --recursive; aws s3 ls s3://apt.defguard.net/pool/ --recursive) | awk '{print "<a href=\""$4"\">"$4"</a><br>"}' > index.html
247- aws s3 cp index.html s3://apt.defguard.net/ --acl public-read
0 commit comments