Skip to content

Commit

Permalink
bump: upgrade golang and alpine versions (oras-project#773)
Browse files Browse the repository at this point in the history
1. Updated golang version to `1.19.5` for GitHub action
2. Updated golang version to `1.19.5` in dockerfile 
3. Updated alpine version to `3.17.1` in dockerfile

Signed-off-by: Sylvia Lei <lixlei@microsoft.com>
  • Loading branch information
Wwwsylvia authored and Terry Howe committed Feb 2, 2023
1 parent 02db59c commit 17491d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: setup go environment
uses: actions/setup-go@v3
with:
go-version: '1.19.2'
go-version: '1.19.5'
- name: run goreleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM docker.io/library/golang:1.19.2-alpine as builder
FROM docker.io/library/golang:1.19.5-alpine as builder
ARG TARGETPLATFORM
RUN apk add git make
ENV ORASPKG /oras
Expand All @@ -20,7 +20,7 @@ WORKDIR ${ORASPKG}
RUN make "build-$(echo $TARGETPLATFORM | tr / -)"
RUN mv ${ORASPKG}/bin/${TARGETPLATFORM}/oras /go/bin/oras

FROM docker.io/library/alpine:3.15.4
FROM docker.io/library/alpine:3.17.1
RUN apk --update add ca-certificates
COPY --from=builder /go/bin/oras /bin/oras
RUN mkdir /workspace
Expand Down

0 comments on commit 17491d4

Please sign in to comment.