Skip to content

Commit

Permalink
sit-nov-testing : fixed github actions
Browse files Browse the repository at this point in the history
missed checkin of this file, includes 2 fixes
1. commenting of tar/gzip job as it is taken care of during packaging
2. installing hub package as it is not available by default in ubunut 20.04 anymore as per (actions/runner-images#8362)
  • Loading branch information
mphanias committed Nov 8, 2023
1 parent 48436d3 commit af442e3
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/build_release_artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,21 @@ jobs:
- name: make package-linux-amd64
run: make package-linux-amd64

- name: gzip tar files
run: |
cd pkg/target
ls -lrt *.tar
echo "GZipping tar files"
gzip aerospike-prometheus-exporter*.tar
echo "gzipped files"
ls -lrt *.gz
# - name: gzip tar files
# run: |
# cd pkg/target
# ls -lrt *.tar
# echo "GZipping tar files"
# gzip aerospike-prometheus-exporter*.tar
# echo "gzipped files"
# ls -lrt *.gz

- name: install hub utility (as workaround)
run: |
sudo apt update && sudo apt install -y git wget
url="$(sudo wget -qO- https://api.github.com/repos/github/hub/releases/latest | tr '"' '\n' | grep '.*/download/.*/hub-linux-amd64-.*.tgz')"
sudo wget -qO- "$url" | sudo tar -xzvf- -C /usr/bin --strip-components=2 --wildcards "*/bin/hub"
- name: Upload Release Asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit af442e3

Please sign in to comment.