Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release automation #269

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
path: src/github.com/estesp/manifest-tool
Expand Down Expand Up @@ -56,9 +56,9 @@ jobs:

steps:
- name: Install Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.22.5'
go-version: '1.23.2'

- name: Set env
shell: bash
Expand All @@ -70,7 +70,7 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH

- name: Checkout manifest-tool
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: estesp/manifest-tool
ref: ${{ github.ref }}
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH

- name: Checkout manifest-tool
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: estesp/manifest-tool
ref: ${{ github.ref }}
Expand Down Expand Up @@ -149,9 +149,9 @@ jobs:

steps:
- name: Install Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.22.5'
go-version: '1.23.2'

- name: Set env
shell: bash
Expand All @@ -163,7 +163,7 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH

- name: Checkout manifest-tool
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: estesp/manifest-tool
ref: ${{ github.ref }}
Expand Down Expand Up @@ -193,9 +193,9 @@ jobs:

steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.22.5'
uses: actions/setup-go@v5
5ith:
go-version: '1.23.2'

- name: Set env
shell: bash
Expand All @@ -213,7 +213,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Checkout manifest-tool
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: estesp/manifest-tool
ref: ${{ github.ref }}
Expand Down
6 changes: 4 additions & 2 deletions hack/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ ARG TARGETARCH
ARG TARGETVARIANT
ARG BUILDPLATFORM
ARG BUILDARCH
ARG GOPROXY
RUN apk add bash git

ENV GOOS linux
ENV GOARCH $TARGETARCH
ENV GOARMV $TARGETVARIANT
ENV GO_PROXY $GOPROXY
# Get GCR credential helper
RUN GOARM=${GOARMV#v} go install github.com/GoogleCloudPlatform/docker-credential-gcr@latest
RUN GOARM=${GOARMV#v} go install github.com/GoogleCloudPlatform/docker-credential-gcr/v2@latest

# Get Amazon ECR credential helper
RUN GOARM=${GOARMV#v} go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login@latest
Expand All @@ -25,7 +27,7 @@ WORKDIR /manifest-tool
COPY . /manifest-tool
RUN /manifest-tool/hack/makestatic.sh $TARGETARCH ${TARGETVARIANT#v}

FROM --platform=$TARGETPLATFORM alpine:3.19.2
FROM --platform=$TARGETPLATFORM alpine:3.20.3
COPY --from=bld /manifest-tool/manifest-tool /manifest-tool
COPY --from=bld /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=bld --chown=0:0 /go/bin/docker-credential-gcr /usr/bin/docker-credential-gcloud
Expand Down
Loading