File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 fetch-depth : 0
1818
1919 - name : Login to DockerHub Registry
20+ if : ${{ ! env.ACT }}
2021 run : echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
2122
2223 - name : Set up Docker Buildx
3233 go mod tidy
3334 git diff --exit-code
3435
36+ - name : Install mono (chocolatey requirement)
37+ run : |
38+ sudo apt-get update
39+ sudo apt-get install -y mono-complete
40+
41+ - name : Install chocolatey
42+ run : |
43+ # Create directories owned by your user
44+ sudo mkdir -p /opt/chocolatey/config
45+ sudo mkdir -p /opt/chocolatey/logs
46+ sudo mkdir -p /opt/chocolatey/lib
47+
48+ # Give ownership to your user (more secure than 777)
49+ sudo chown -R $USER:$USER /opt/chocolatey/config
50+ sudo chown -R $USER:$USER /opt/chocolatey/logs
51+
52+ wget -q -O - "https://github.com/chocolatey/choco/releases/download/${CHOCOLATEY_VERSION}/chocolatey.v${CHOCOLATEY_VERSION}.tar.gz" | tar -xz -C "/opt/chocolatey"
53+ echo '#!/bin/bash' >> /usr/local/bin/choco
54+ echo 'mono /opt/chocolatey/choco.exe $@' >> /usr/local/bin/choco
55+ chmod +x /usr/local/bin/choco
56+ env :
57+ CHOCOLATEY_VERSION : 2.7.1
58+
3559 - name : Run GoReleaser
3660 uses : goreleaser/goreleaser-action@1a80836c5c9d9e5755a25cb59ec6f45a3b5f41a8 # v7.2.1
3761 with :
You can’t perform that action at this time.
0 commit comments