Compare commits

9 Commits
1.6.1 ... main

Author SHA1 Message Date
ludal
c033b9b79b gitea-actions auto commit - update version 2025-07-22 15:36:41 +00:00
Ludovic Cartier
7e288531dd update package name
All checks were successful
/ validate (push) Successful in 18s
/ build (push) Successful in 22s
2025-07-22 17:36:26 +02:00
ludal
96410e4792 gitea-actions auto commit - update version 2025-07-21 22:04:37 +00:00
Ludovic Cartier
e4f3ed8007 update notification message & re-enable version check
All checks were successful
/ validate (push) Successful in 4s
/ build (push) Successful in 21s
2025-07-22 00:04:34 +02:00
Ludovic Cartier
77af792e82 gros teubé
All checks were successful
/ validate (push) Successful in 4s
/ build (push) Successful in 27s
2025-07-21 23:55:46 +02:00
Ludovic Cartier
11e8cd20d0 revert
Some checks failed
/ validate (push) Successful in 4s
/ build (push) Failing after 15s
2025-07-21 23:53:30 +02:00
Ludovic Cartier
6d16aa2187 orders matters
Some checks failed
/ validate (push) Successful in 4s
/ build (push) Failing after 16s
2025-07-21 23:51:35 +02:00
Ludovic Cartier
66091c5230 env.version
Some checks failed
/ validate (push) Successful in 4s
/ build (push) Failing after 17s
2025-07-21 23:48:22 +02:00
Ludovic Cartier
6dba21d352 force build
Some checks failed
/ validate (push) Successful in 3s
/ build (push) Failing after 15s
2025-07-21 23:40:47 +02:00

View File

@@ -23,10 +23,10 @@ jobs:
LATEST=`curl --silent https://api.github.com/repos/jonnenauha/prometheus_varnish_exporter/releases/latest | jq -r .tag_name | sed "s/v//"` LATEST=`curl --silent https://api.github.com/repos/jonnenauha/prometheus_varnish_exporter/releases/latest | jq -r .tag_name | sed "s/v//"`
echo "current registered version: $CURRENT" echo "current registered version: $CURRENT"
echo "latest version on remote repo: $LATEST" echo "latest version on remote repo: $LATEST"
echo "version=$LATEST" >> $GITHUB_OUTPUT
if awk "BEGIN {exit !($LATEST > $CURRENT)}"; then if awk "BEGIN {exit !($LATEST > $CURRENT)}"; then
echo $LATEST > .version echo $LATEST > .version
echo "build=true" >> $GITHUB_OUTPUT echo "build=true" >> $GITHUB_OUTPUT
echo "version=$LATEST" >> $GITHUB_OUTPUT
else else
echo "build=false" >> $GITHUB_OUTPUT echo "build=false" >> $GITHUB_OUTPUT
fi fi
@@ -58,8 +58,8 @@ jobs:
- name: Set version to env vars - name: Set version to env vars
run: | run: |
echo "${{ needs.validate.outputs.version }}"
echo "VERSION=${{ needs.validate.outputs.version }}" >> $GITHUB_ENV echo "VERSION=${{ needs.validate.outputs.version }}" >> $GITHUB_ENV
echo "version: $VERSION"
- name: Setup go - name: Setup go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
@@ -84,7 +84,7 @@ jobs:
- name: Prepare amd64 control file - name: Prepare amd64 control file
run: | run: |
echo "Package: varnish-exporter" > varnish-exporter-amd64/DEBIAN/control echo "Package: prometheus-varnish-exporter" > varnish-exporter-amd64/DEBIAN/control
echo "Version: $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 "Maintainer: Ludovic Cartier <ludovic.cartier@alterway.fr>" >> varnish-exporter-amd64/DEBIAN/control
echo "Architecture: amd64" >> varnish-exporter-amd64/DEBIAN/control echo "Architecture: amd64" >> varnish-exporter-amd64/DEBIAN/control
@@ -95,10 +95,6 @@ jobs:
run: | run: |
dpkg -b varnish-exporter-amd64 bin/prometheus-varnish-exporter_$VERSION-1_amd64.deb dpkg -b varnish-exporter-amd64 bin/prometheus-varnish-exporter_$VERSION-1_amd64.deb
# - name: Prepare apt repo upload
# run: |
# mv bin/prometheus-varnish-exporter-amd64.deb bin/prometheus-varnish-exporter_$VERSION-1_amd64.deb
- name: Release packages - name: Release packages
run: | run: |
curl -s -u "${{ secrets.PACKAGE_TOKEN }}" --upload-file bin/prometheus-varnish-exporter_$VERSION-1_amd64.deb \ curl -s -u "${{ secrets.PACKAGE_TOKEN }}" --upload-file bin/prometheus-varnish-exporter_$VERSION-1_amd64.deb \
@@ -107,7 +103,7 @@ jobs:
- name: Create release - name: Create release
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
with: with:
tag_name: "$VERSION" tag_name: "${{ env.VERSION }}"
files: |- files: |-
bin/** bin/**
token: "${{ secrets.RELEASE_TOKEN }}" token: "${{ secrets.RELEASE_TOKEN }}"
@@ -115,8 +111,8 @@ jobs:
- name: Send notification to mattermost - name: Send notification to mattermost
uses: rtCamp/action-slack-notify@v2 uses: rtCamp/action-slack-notify@v2
env: env:
SLACK_WEBHOOK: ${{ secrets.MATTERMOST_WEBHOOK }} SLACK_WEBHOOK: "${{ secrets.MATTERMOST_WEBHOOK }}"
SLACK_USERNAME: gitea-bot SLACK_USERNAME: gitea-bot
SLACK_CHANNEL: gitea-actions SLACK_CHANNEL: gitea-actions
SLACK_COLOR: ${{ job.status }} SLACK_COLOR: "${{ job.status }}"
SLACK_CUSTOM_PAYLOAD: '{"username": "gitea-bot", "icon_url": "https://w7.pngwing.com/pngs/940/571/png-transparent-gitea-hd-logo-thumbnail.png", "text": "varnish-exporter build has just finished in version $VERSION !"}' SLACK_CUSTOM_PAYLOAD: '{"username": "gitea-bot", "icon_url": "https://w7.pngwing.com/pngs/940/571/png-transparent-gitea-hd-logo-thumbnail.png", "text": "varnish-exporter build has just finished in version ${{ env.VERSION }} !"}'