mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
fix: docker build
This commit is contained in:
@@ -169,6 +169,6 @@ jobs:
|
|||||||
tags: ghcr.io/${{github.repository}}:${{format('v{0}', inputs.tag)}}, ${{env.LATEST_TAG}}
|
tags: ghcr.io/${{github.repository}}:${{format('v{0}', inputs.tag)}}, ${{env.LATEST_TAG}}
|
||||||
labels: org.opencontainers.image.title=Docker
|
labels: org.opencontainers.image.title=Docker
|
||||||
build-args: |
|
build-args: |
|
||||||
--provenance=false
|
--provenance=false client_tag=${{inputs.tag}}
|
||||||
env:
|
env:
|
||||||
LATEST_TAG: ${{ inputs.is_latest == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }}
|
LATEST_TAG: ${{ inputs.is_latest == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }}
|
||||||
|
|||||||
+6
-2
@@ -1,16 +1,20 @@
|
|||||||
FROM node:latest AS CLIENT
|
FROM node:latest AS CLIENT
|
||||||
|
|
||||||
RUN git clone --depth 1 https://github.com/swing-opensource/swingmusic-client.git client
|
ARG client_tag
|
||||||
|
|
||||||
|
RUN git clone --branch $client_tag --depth 1 https://github.com/swing-opensource/swingmusic-client.git client
|
||||||
|
|
||||||
WORKDIR /client
|
WORKDIR /client
|
||||||
|
|
||||||
# RUN git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
|
# RUN git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
|
||||||
|
# checkout the latest tag
|
||||||
|
# RUN git checkout $client_tag
|
||||||
|
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
|
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
FROM python:latest
|
FROM python:3.10
|
||||||
|
|
||||||
WORKDIR /app/swingmusic
|
WORKDIR /app/swingmusic
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user