Skip to content

Commit

Permalink
Ubuntu 22.04 (#45)
Browse files Browse the repository at this point in the history
Signed-off-by: Masayuki Ishii <[email protected]>
  • Loading branch information
masa213f authored Feb 7, 2023
1 parent 1391d90 commit 758cde8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ env:
cache-version: 1
jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: make docker-build
test:
name: Small tests
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
Expand All @@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
k8s-version: ["1.23.13", "1.24.7", "1.25.3"]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
image:
name: Push Container image
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v1
Expand All @@ -27,7 +27,7 @@ jobs:
release:
name: Release on GitHub
needs: image
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Create release
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM quay.io/cybozu/golang:1.19-focal as builder
FROM quay.io/cybozu/golang:1.19-jammy as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -19,7 +19,7 @@ COPY pkg/ pkg/
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager cmd/nyamber-controller/main.go

FROM quay.io/cybozu/ubuntu:20.04
FROM quay.io/cybozu/ubuntu:22.04
LABEL org.opencontainers.image.source https://github.com/cybozu-go/nyamber

WORKDIR /
Expand Down
7 changes: 2 additions & 5 deletions Dockerfile.runner
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM quay.io/cybozu/golang:1.19-focal as builder
FROM quay.io/cybozu/golang:1.19-jammy as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -18,7 +18,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o entrypoint cmd/entrypoint/main.go

FROM quay.io/cybozu/ubuntu:20.04
FROM quay.io/cybozu/ubuntu:22.04
LABEL org.opencontainers.image.source https://github.com/cybozu-go/nyamber

ENV GO_VERSION=1.19.5
Expand All @@ -36,9 +36,6 @@ ENV NECO_APPS_DIR=${GOPATH}/src/github.com/cybozu-private/neco-apps
COPY include-bird /etc/dpkg/dpkg.cfg.d/

RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:smoser/swtpm \
&& apt-get update \
&& apt-get -y install --no-install-recommends \
git \
build-essential \
Expand Down

0 comments on commit 758cde8

Please sign in to comment.