Fix Poetry install order (#80)
This commit is contained in:
parent
1988053bb0
commit
13563871cb
3 changed files with 12 additions and 7 deletions
11
.github/workflows/release-containers.yml
vendored
11
.github/workflows/release-containers.yml
vendored
|
|
@ -9,9 +9,9 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'Version to release (e.g., v1.0.0)'
|
description: 'Version to release (e.g., v0.1.0)'
|
||||||
required: true
|
required: true
|
||||||
default: 'v1.0.0'
|
default: 'v0.0.1'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
|
|
@ -38,6 +38,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Install Poetry
|
||||||
|
uses: snok/install-poetry@v1
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
|
@ -63,7 +66,7 @@ jobs:
|
||||||
elif [[ $GITHUB_REF == refs/tags/* ]]; then
|
elif [[ $GITHUB_REF == refs/tags/* ]]; then
|
||||||
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "VERSION=$(date +'%Y.%m.%d')-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
echo "VERSION=$(date +'%Y.%m.%d').dev0" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build and push Actor image
|
- name: Build and push Actor image
|
||||||
|
|
@ -79,8 +82,6 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT }}
|
GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||||
run: gh workflow -R ArcadeAI/Team run Deploy -f actor-version=${{ env.VERSION }}
|
run: gh workflow -R ArcadeAI/Team run Deploy -f actor-version=${{ env.VERSION }}
|
||||||
|
|
||||||
- name: Install Poetry
|
|
||||||
uses: snok/install-poetry@v1
|
|
||||||
|
|
||||||
- name: Build Dev Python Package
|
- name: Build Dev Python Package
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -91,7 +91,7 @@ full-dist: clean-dist ## Build all projects and copy wheels to ./dist
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
|
|
||||||
@echo "✅ All projects built and wheels copied to arcade/dist"
|
@echo "✅ All toolkits built and wheels copied to ./dist"
|
||||||
|
|
||||||
.PHONY: clean-dist
|
.PHONY: clean-dist
|
||||||
clean-dist: ## Clean all built distributions
|
clean-dist: ## Clean all built distributions
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,11 @@ RUN apt-get update && apt-get install -y \
|
||||||
WORKDIR /app/arcade
|
WORKDIR /app/arcade
|
||||||
|
|
||||||
# Copy the parent directory contents into the container
|
# Copy the parent directory contents into the container
|
||||||
COPY ./dist .
|
COPY ../dist /app/arcade/
|
||||||
|
|
||||||
|
# List files for debugging purposes
|
||||||
|
RUN ls -lah /app/arcade/
|
||||||
|
|
||||||
|
|
||||||
# Install the wheel with extras (not evals for now)
|
# Install the wheel with extras (not evals for now)
|
||||||
RUN python -m pip install ./arcade_ai-${VERSION}-py3-none-any.whl
|
RUN python -m pip install ./arcade_ai-${VERSION}-py3-none-any.whl
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue