mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-16 17:13:46 -05:00
Fix CI workflows
This commit is contained in:
11
.github/actions/build-image/Dockerfile
vendored
Normal file
11
.github/actions/build-image/Dockerfile
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM --platform=$BUILDPLATFORM alpine AS builder
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG TARGETOS
|
||||
|
||||
COPY . /
|
||||
RUN mv cup-$TARGETOS-$TARGETARCH cup
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /cup /cup
|
||||
ENTRYPOINT ["/cup"]
|
||||
2
.github/actions/build-image/action.yml
vendored
2
.github/actions/build-image/action.yml
vendored
@@ -43,7 +43,7 @@ runs:
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
file: ./.github/actions/build-image/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
|
||||
Reference in New Issue
Block a user