Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--buildarg in GH publish #42

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ env:
NAME: luxonis/modelconverter-${{ inputs.package }}
STEM: modelconverter-${{ inputs.package }}
VERSION: ${{ inputs.version }}
GS_BUILD_ARTIFACTS: gs://luxonis-test-bucket/modelconverter/build-artifacts
GAR_STEM: us-central1-docker.pkg.dev/easyml-394818

jobs:
ghcr-publish:
publish:
runs-on: ubuntu-latest
env:
LOCAL_NAME: ${NAME}:${VERSION}-latest
LOCAL_NAME: luxonis/modelconverter-${{ inputs.package }}:${{ inputs.version }}-latest

steps:
- name: Checkout code
Expand Down Expand Up @@ -64,10 +63,12 @@ jobs:

- name: Download build files from GCS
if: ${{ inputs.package }} != hailo
env:
GS_BUILD_ARTIFACTS: gs://luxonis-test-bucket/modelconverter/build-artifacts
run: |
mkdir -p docker/extra_packages
cd docker/extra_packages
if [ "$PACKAGE" = "rvc4" ]; then
if [ "${PACKAGE}" = "rvc4" ]; then
gcloud storage cp \
"${GS_BUILD_ARTIFACTS}/snpe-${VERSION}.zip" \
"snpe-${VERSION}.zip"
Expand All @@ -79,7 +80,7 @@ jobs:

- name: Build image
run: |
docker build -f "${DOCKERFILE}" -t "${LOCAL_NAME}" .
docker build -f "${DOCKERFILE}" -t "${LOCAL_NAME}" . --build-arg VERSION="${VERSION}"

- name: GHCR publish latest
run: |
Expand Down
Loading