Skip to content

Commit 02d705a

Browse files
committed
chore: update Dockerfile and GitHub Actions workflow
- Added binutils-gold to the Dockerfile build dependencies. - Updated kubectl version to v1.30.12 in the Dockerfile. - Modified GitHub Actions workflow to trigger on release publication instead of pull request and tag push.
1 parent c08b553 commit 02d705a

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/publish-release.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
# Publish flant/shell-operator image on hub.docker.com.
2-
# Build 'latest' tag if started manually on default branch.
3-
# Build 'latest' tag when PR is merged into the default branch.
4-
# Build 'v*.*.*' and 'latest' tags on push released tag.
2+
# Build 'latest' tag when release is published.
53
name: Publish release image
64

75
on:
86
workflow_dispatch:
9-
pull_request:
10-
types: [closed]
11-
push:
12-
tags:
13-
- 'v*'
7+
release:
8+
types: [published]
149

1510
env:
1611
QEMU_PLATFORMS: arm64,arm

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM --platform=${TARGETPLATFORM:-linux/amd64} flant/jq:b6be13d5-musl as libjq
55
FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.23-alpine3.21 AS builder
66

77
ARG appVersion=latest
8-
RUN apk --no-cache add git ca-certificates gcc musl-dev libc-dev
8+
RUN apk --no-cache add git ca-certificates gcc musl-dev libc-dev binutils-gold
99

1010
# Cache-friendly download of go dependencies.
1111
ADD go.mod go.sum /app/
@@ -25,7 +25,7 @@ ARG TARGETPLATFORM
2525
RUN apk --no-cache add ca-certificates bash sed tini && \
2626
kubectlArch=$(echo ${TARGETPLATFORM:-linux/amd64} | sed 's/\/v7//') && \
2727
echo "Download kubectl for ${kubectlArch}" && \
28-
wget https://storage.googleapis.com/kubernetes-release/release/v1.27.13/bin/${kubectlArch}/kubectl -O /bin/kubectl && \
28+
wget https://dl.k8s.io/release/v1.30.12/bin/${kubectlArch}/kubectl -O /bin/kubectl && \
2929
chmod +x /bin/kubectl && \
3030
mkdir /hooks
3131
ADD frameworks/shell /frameworks/shell

0 commit comments

Comments
 (0)