Skip to content

Commit a6935c0

Browse files
fix: update binary name references to match new naming convention
1 parent aecbf21 commit a6935c0

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

.github/workflows/CD.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ jobs:
2525
run: go mod download
2626

2727
- name: Build
28-
run: go build -o zoraxy_crowdsec_bouncer
28+
run: go build -o zoraxycrowdsecbouncer
2929

3030
- name: generate checksums
3131
run: |
32-
sha256sum zoraxy_crowdsec_bouncer > zoraxy_crowdsec_bouncer.sha256
32+
sha256sum zoraxycrowdsecbouncer > zoraxycrowdsecbouncer.sha256
3333
sha256sum config.yaml > config.yaml.sha256
3434
3535
- name: Upload binary artifact
3636
uses: actions/upload-artifact@v4
3737
with:
38-
name: zoraxy_crowdsec_bouncer
39-
path: zoraxy_crowdsec_bouncer
38+
name: zoraxycrowdsecbouncer
39+
path: zoraxycrowdsecbouncer
4040

4141
- name: Upload config artifact
4242
uses: actions/upload-artifact@v4
@@ -47,8 +47,8 @@ jobs:
4747
- name: Upload binary checksum artifact
4848
uses: actions/upload-artifact@v4
4949
with:
50-
name: zoraxy_crowdsec_bouncer.sha256
51-
path: zoraxy_crowdsec_bouncer.sha256
50+
name: zoraxycrowdsecbouncer.sha256
51+
path: zoraxycrowdsecbouncer.sha256
5252

5353
- name: Upload config checksum artifact
5454
uses: actions/upload-artifact@v4
@@ -65,7 +65,7 @@ jobs:
6565
echo "Commit SHA: ${{ github.sha }}" >> release_notes.txt
6666
echo "| File | SHA256 Checksum |" >> release_notes.txt
6767
echo "| --- | --- |" >> release_notes.txt
68-
echo "| zoraxy_crowdsec_bouncer | \`$(sha256sum zoraxy_crowdsec_bouncer | awk '{print $1}')\` |" >> release_notes.txt
68+
echo "| zoraxycrowdsecbouncer | \`$(sha256sum zoraxycrowdsecbouncer | awk '{print $1}')\` |" >> release_notes.txt
6969
echo "| config.yaml | \`$(sha256sum config.yaml | awk '{print $1}')\` |" >> release_notes.txt
7070
echo "BODY<<EOF" >> $GITHUB_OUTPUT
7171
cat release_notes.txt >> $GITHUB_OUTPUT
@@ -83,9 +83,9 @@ jobs:
8383
generate_release_notes: true
8484
body: ${{ steps.release_body.outputs.BODY }}
8585
files: |
86-
zoraxy_crowdsec_bouncer
86+
zoraxycrowdsecbouncer
8787
config.yaml
88-
zoraxy_crowdsec_bouncer.sha256
88+
zoraxycrowdsecbouncer.sha256
8989
config.yaml.sha256
9090
env:
9191
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ mkdir -p /opt/zoraxy/plugins/zoraxy_crowdsec_bouncer
2727
Then, copy the link to the latest binary from the [releases page](https://github.com/AnthonyMichaelTDM/zoraxy_crowdsec_bouncer/releases) and use `wget` to download it to the `zoraxy_crowdsec_bouncer` directory:
2828

2929
```bash
30-
cd /opt/zoraxy/plugins/zoraxy_crowdsec_bouncer
30+
cd /opt/zoraxy/plugins/zoraxycrowdsecbouncer
3131
# wget <LINK_TO_LATEST_BINARY>
32-
wget https://github.com/AnthonyMichaelTDM/zoraxy_crowdsec_bouncer/releases/download/v1.0.0/zoraxy_crowdsec_bouncer
33-
chmod +x zoraxy_crowdsec_bouncer
32+
wget https://github.com/AnthonyMichaelTDM/zoraxy_crowdsec_bouncer/releases/download/v1.0.0/zoraxycrowdsecbouncer
33+
chmod +x zoraxycrowdsecbouncer
3434
```
3535

3636
Do the same for the `config.yaml` file:
@@ -45,11 +45,11 @@ Clone the repository inside the Zoraxy plugins directory, then build the plugin:
4545

4646
```bash
4747
cd /opt/zoraxy/plugins
48-
git clone https://github.com/AnthonyMichaelTDM/zoraxy-crowdsec-bouncer.git
48+
git clone https://github.com/AnthonyMichaelTDM/zoraxy_crowdsec_bouncer.git zoraxycrowdsecbouncer
4949

50-
cd zoraxy-crowdsec-bouncer
51-
go build -o zoraxy_crowdsec_bouncer.so
52-
chmod +x zoraxy_crowdsec_bouncer.so
50+
cd zoraxycrowdsecbouncer
51+
go build -o zoraxycrowdsecbouncer.so
52+
chmod +x zoraxycrowdsecbouncer.so
5353
```
5454

5555
## Configuration
@@ -69,6 +69,3 @@ You can get the API key by running the following command:
6969
```bash
7070
sudo cscli bouncers add zoraxy-crowdsec-bouncer
7171
```
72-
73-
74-

0 commit comments

Comments
 (0)