fix: docker build

This commit is contained in:
mungai-njoroge
2024-02-26 00:18:22 +03:00
parent c116b7a2c6
commit 5464f95a9e
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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