Skip to content

Commit

Permalink
fix: updated GitHub Actions (#132)
Browse files Browse the repository at this point in the history
* fix: updated GitHub Actions

* ci: add dist folder to gitignore
  • Loading branch information
karl-cardenas-coding authored Aug 17, 2024
1 parent 977a0e9 commit cf0b25e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
fetch-depth: 2

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
run: make tests-coverage

- name: Codecov Upload
uses: codecov/codecov-action@v4.3.1
uses: codecov/codecov-action@v4.5.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -82,10 +82,10 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3.2.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3


- name: Login to GHCR
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:

- run: git fetch --force --tags

- uses: actions/setup-go@v5.0.2
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
check-latest: true
Expand All @@ -134,6 +134,10 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get AWS Regions
run: aws ec2 describe-regions --all-regions --region us-east-1 --query "Regions[].RegionName" --output text >> cmd/aws-regions.txt


- name: Build and Push Docker Image
uses: docker/build-push-action@v6
id: build-and-push
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ main
.DS_STORE
main
coverage.out

dist/
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ builds:
- id: primary
ldflags:
- -s -w -X github.com/karl-cardenas-coding/go-lambda-cleanup/v2/cmd.VersionString={{.Version}}
binary: glc
env:
- CGO_ENABLED=0
goos:
Expand Down

0 comments on commit cf0b25e

Please sign in to comment.