Skip to content

Commit

Permalink
Merge pull request #2 from FirstStreet/dan/go-updates
Browse files Browse the repository at this point in the history
Update Go
  • Loading branch information
seripap authored Jul 10, 2024
2 parents 898685b + a8da44b commit 02e7262
Show file tree
Hide file tree
Showing 42 changed files with 2,973 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.13
go-version: 1.22
id: go

- uses: actions/checkout@v2

- name: Build
run: |
go get -d -v
go install
go build -v .
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.13
go-version: 1.22
id: go

- uses: actions/checkout@v2

- name: Test
run: |
go get -d -v
go install
go test
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:1.13 as builder
FROM golang:1.22 as builder

WORKDIR /app
COPY . /app

RUN go get -d -v
RUN go install

# Statically compile our app for use in a distroless container
RUN CGO_ENABLED=0 go build -ldflags="-w -s" -v -o app .
Expand All @@ -14,4 +14,4 @@ FROM gcr.io/distroless/static

COPY --from=builder /app/app /app

ENTRYPOINT ["/app"]
ENTRYPOINT ["/app"]
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ outputs:
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.find }}
- ${{ inputs.replace }}
- ${{ inputs.regex }}
- ${{ inputs.include }}
- ${{ inputs.exclude }}
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/firststreet/gha-find-replace

go 1.22.2

require github.com/gobwas/glob v0.2.3
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=
github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
8 changes: 8 additions & 0 deletions vendor/github.com/gobwas/glob/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions vendor/github.com/gobwas/glob/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions vendor/github.com/gobwas/glob/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions vendor/github.com/gobwas/glob/bench.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 02e7262

Please sign in to comment.