Skip to content

Commit

Permalink
deps: Bumped to Golang 1.19.4 and changed to Debian 11.6.
Browse files Browse the repository at this point in the history
Previously monetr was running on what was basically the experimental
version of debian. 11.6 is more stable so that will be used instead.
Previously it was running on bookworm, but this changes it so we are
running on bullseye instead.
  • Loading branch information
elliotcourant committed Jan 4, 2023
1 parent 6a2d4e8 commit 5ab6400
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/incoming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
go_dependencies:
name: Go Dependencies
runs-on: ubuntu-latest
container: ghcr.io/monetr/build-containers/golang:1.19.3
container: ghcr.io/monetr/build-containers/golang:1.19.4
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
- build_ui
name: Build Binary
runs-on: ubuntu-latest
container: ghcr.io/monetr/build-containers/golang:1.19.3
container: ghcr.io/monetr/build-containers/golang:1.19.4
strategy:
matrix:
architecture:
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
- go_dependencies
name: Test Go
runs-on: ubuntu-latest
container: ghcr.io/monetr/build-containers/golang:1.19.3
container: ghcr.io/monetr/build-containers/golang:1.19.4
env:
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: ""
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
go_dependencies:
name: Go Dependencies
runs-on: ubuntu-latest
container: ghcr.io/monetr/build-containers/golang:1.19.3
container: ghcr.io/monetr/build-containers/golang:1.19.4
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
- build_ui
name: Build Binary
runs-on: ubuntu-latest
container: ghcr.io/monetr/build-containers/golang:1.19.3
container: ghcr.io/monetr/build-containers/golang:1.19.4
strategy:
matrix:
os:
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
- go_dependencies
name: Test Go
runs-on: ubuntu-latest
container: ghcr.io/monetr/build-containers/golang:1.19.3
container: ghcr.io/monetr/build-containers/golang:1.19.4
env:
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: ""
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- build_ui
name: Build Binary
runs-on: ubuntu-latest
container: ghcr.io/monetr/build-containers/golang:1.19.3
container: ghcr.io/monetr/build-containers/golang:1.19.4
continue-on-error: true
strategy:
fail-fast: false
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/golang:1.19.3 as dependencies
FROM docker.io/library/golang:1.19.4 as dependencies
WORKDIR /build

# Build args need to be present in each "FROM"
Expand All @@ -21,10 +21,10 @@ ARG GOFLAGS
ENV GOFLAGS=$GOFLAGS
RUN go build -ldflags "-s -w -X main.buildType=container -X main.buildHost=${BUILD_HOST:-`hostname`} -X main.buildTime=`date -u +"%Y-%m-%dT%H:%M:%SZ"` -X main.buildRevision=${REVISION} -X main.release=${RELEASE}" -o /usr/bin/monetr /build/pkg/cmd

FROM docker.io/library/debian:bookworm-20220622-slim
FROM docker.io/library/debian:11.6-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
tzdata=2022a-1 \
ca-certificates=20211016 \
tzdata=2021a-* \
ca-certificates=20210119 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
EXPOSE 4000
VOLUME ["/etc/monetr"]
Expand Down

0 comments on commit 5ab6400

Please sign in to comment.