revert
This commit is contained in:
@@ -59,7 +59,6 @@ jobs:
|
||||
- name: Set version to env vars
|
||||
run: |
|
||||
echo "VERSION=${{ needs.validate.outputs.version }}" >> $GITHUB_ENV
|
||||
echo "version: ${{ env.VERSION }}"
|
||||
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v4
|
||||
@@ -85,7 +84,7 @@ jobs:
|
||||
- name: Prepare amd64 control file
|
||||
run: |
|
||||
echo "Package: varnish-exporter" > varnish-exporter-amd64/DEBIAN/control
|
||||
echo "Version: ${{ env.VERSION }}" >> varnish-exporter-amd64/DEBIAN/control
|
||||
echo "Version: $VERSION" >> varnish-exporter-amd64/DEBIAN/control
|
||||
echo "Maintainer: Ludovic Cartier <ludovic.cartier@alterway.fr>" >> varnish-exporter-amd64/DEBIAN/control
|
||||
echo "Architecture: amd64" >> varnish-exporter-amd64/DEBIAN/control
|
||||
echo "Homepage: https://git.brainsys.io/packages/prometheus-exporters" >> varnish-exporter-amd64/DEBIAN/control
|
||||
@@ -93,7 +92,7 @@ jobs:
|
||||
|
||||
- name: Build deb files
|
||||
run: |
|
||||
dpkg -b varnish-exporter-amd64 bin/prometheus-varnish-exporter_${{ env.VERSION }}-1_amd64.deb
|
||||
dpkg -b varnish-exporter-amd64 bin/prometheus-varnish-exporter_$VERSION-1_amd64.deb
|
||||
|
||||
# - name: Prepare apt repo upload
|
||||
# run: |
|
||||
@@ -101,7 +100,7 @@ jobs:
|
||||
|
||||
- name: Release packages
|
||||
run: |
|
||||
curl -s -u "${{ secrets.PACKAGE_TOKEN }}" --upload-file bin/prometheus-varnish-exporter_"${{ env.VERSION }}"-1_amd64.deb \
|
||||
curl -s -u "${{ secrets.PACKAGE_TOKEN }}" --upload-file bin/prometheus-varnish-exporter_$VERSION-1_amd64.deb \
|
||||
https://git.brainsys.io/api/packages/packages/debian/pool/stable/main/upload
|
||||
|
||||
- name: Create release
|
||||
|
Reference in New Issue
Block a user