Skip to content

Commit

Permalink
upgrade dockerfile to go1.24rc1 (#88)
Browse files Browse the repository at this point in the history
* upgrade dockerfile to go1.24rc1

* snap install awscli in setup.sh

* remove localstack build steps
  • Loading branch information
EthanBlackburn authored Jan 3, 2025
1 parent 8b9b15d commit 7b3d0be
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,3 @@ jobs:

- name: Build
run: go build -v ./...

- name: Start LocalStack
uses: LocalStack/setup-localstack@main
with:
image-tag: 'latest'
install-awslocal: 'true'
use-pro: 'true'
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}

- name: Setup aws credentials
run: |
mkdir -p ~/.aws
echo "[default]" > ~/.aws/credentials
echo "aws_access_key_id = localstack" >> ~/.aws/credentials
echo "aws_secret_access_key = localstack" >> ~/.aws/credentials
echo "region = us-east-1" >> ~/.aws/credentials
- name: Test
run: go test -v ./...
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.2
FROM golang:1.24rc1

WORKDIR /telophasecli

Expand Down
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if command -v brew &> /dev/null; then
elif [ "$(uname)" = "Linux" ]; then
if [ -f /etc/debian_version ]; then
echo "Debian-based Linux detected. Installing packages with apt."
sudo apt update && sudo apt install -y awscli
sudo snap install aws-cli --classic
pip3 install awscli-local
pip3 install terraform-local
sudo snap install terraform --classic
Expand Down

0 comments on commit 7b3d0be

Please sign in to comment.