mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-21 10:38:28 -05:00
Improved build-docker.yml
This commit is contained in:
parent
d5d44806a9
commit
50667e9787
2 changed files with 5 additions and 4 deletions
7
.github/workflows/build-docker.yml
vendored
7
.github/workflows/build-docker.yml
vendored
|
@ -38,15 +38,16 @@ jobs:
|
|||
with:
|
||||
tags: |
|
||||
type=raw,value=latest
|
||||
type=sha
|
||||
type=raw,value=${{ github.ref_name }}
|
||||
type=semver,pattern={{version}}
|
||||
images: ${{ env.REGISTRY }}/${{ github.repository }}
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
provenance: false
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM --platform=$TARGETPLATFORM eclipse-temurin:21-jre-alpine
|
||||
FROM eclipse-temurin:21-jre-alpine
|
||||
WORKDIR /app/run
|
||||
COPY /build/libs/ViaProxy-*.jar /app/ViaProxy.jar
|
||||
ENTRYPOINT ["java", "-jar", "/app/ViaProxy.jar", "config", "viaproxy.yml"]
|
||||
|
|
Loading…
Reference in a new issue