mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-04-21 00:00:12 +08:00
Merge 672ec7a4c4363a25e25bc9f09b165b03cf681fcd into d1b889456de3c98c22de24642b6f836a29da3140
This commit is contained in:
commit
9486340136
3
.github/workflows/docker-image-publish.yml
vendored
3
.github/workflows/docker-image-publish.yml
vendored
@ -15,6 +15,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
@ -37,6 +39,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
@ -41,7 +41,7 @@ COPY . .
|
|||||||
COPY --from=frontend ["/static/build", "ui/build"]
|
COPY --from=frontend ["/static/build", "ui/build"]
|
||||||
|
|
||||||
# Set necessary environmet variables needed for the image and build the server.
|
# Set necessary environmet variables needed for the image and build the server.
|
||||||
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
|
ENV CGO_ENABLED=0
|
||||||
|
|
||||||
# Run go build (with ldflags to reduce binary size).
|
# Run go build (with ldflags to reduce binary size).
|
||||||
RUN go build -ldflags="-s -w" -o asynqmon ./cmd/asynqmon
|
RUN go build -ldflags="-s -w" -o asynqmon ./cmd/asynqmon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user