Compare commits
5 Commits
1d9221a32b
...
69cb457daf
Author | SHA1 | Date | |
---|---|---|---|
69cb457daf | |||
2183260970 | |||
554d9841b0 | |||
24b15a0762 | |||
09e604abb1 |
@ -46,7 +46,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@b53be03109c4ef6f6cc7aa545b84b17a7fe51c1e
|
uses: docker/metadata-action@906ecf0fc0a80f9110f79d9e6c04b1080f4a2621
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
@ -55,7 +55,7 @@ jobs:
|
|||||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
|
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@5e99dacf67635c4f273e532b9266ddb609b3025a
|
uses: docker/build-push-action@11be14d908760a0756f045980728ec5fb7880f74
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
@ -11,7 +11,7 @@ RUN go build \
|
|||||||
.
|
.
|
||||||
RUN echo "nobody:x:65534:65534:Nobody:/:" > /etc_passwd
|
RUN echo "nobody:x:65534:65534:Nobody:/:" > /etc_passwd
|
||||||
|
|
||||||
FROM alpine:3.20 as compressor
|
FROM alpine:3.21 as compressor
|
||||||
RUN apk add --no-cache upx binutils
|
RUN apk add --no-cache upx binutils
|
||||||
COPY --from=builder --chown=65534:0 /bin/app /app
|
COPY --from=builder --chown=65534:0 /bin/app /app
|
||||||
RUN strip /app && upx -q -9 /app
|
RUN strip /app && upx -q -9 /app
|
||||||
|
Loading…
x
Reference in New Issue
Block a user