ci: tag fixes and robustness to workflow failures (#3838)

This commit is contained in:
Jordan Frazier 2024-09-17 18:03:48 -07:00 committed by GitHub
commit a7d1449e9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 125 additions and 35 deletions

View file

@ -76,10 +76,10 @@ jobs:
echo "nightly_build=false" >> $GITHUB_OUTPUT
fi
- name: Check out the code at a specific ref (e.g., nightly tag)
- name: Check out the code at a specific ref
uses: actions/checkout@v4
with:
ref: ${{ steps.resolve-nightly-tag.outputs.nightly_tag || github.ref }}
ref: ${{ inputs.nightly_tag_main || github.ref }}
- name: Set up Python 3.12 + Poetry ${{ env.POETRY_VERSION }}
uses: "./.github/actions/poetry_caching"
with:
@ -114,10 +114,10 @@ jobs:
env:
NIGHTLY_TAG: ${{ needs.get-version.outputs.nightly-tag }}
steps:
- name: Check out the code at a specific ref (e.g., nightly tag)
- name: Check out the code at a specific ref
uses: actions/checkout@v4
with:
ref: ${{ env.NIGHTLY_TAG || github.ref }}
ref: ${{ inputs.nightly_tag_main || github.ref }}
- name: Set Dockerfile and Tags
id: set-vars
@ -145,10 +145,10 @@ jobs:
runs-on: ubuntu-latest
needs: [get-version, setup]
steps:
- name: Check out the code at a specific ref (e.g., nightly tag)
- name: Check out the code at a specific ref
uses: actions/checkout@v4
with:
ref: ${{ needs.get-version.outputs.nightly-tag || github.ref }}
ref: ${{ inputs.nightly_tag_main || github.ref }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@ -210,10 +210,10 @@ jobs:
tags: ${{ format('ghcr.io/langflow-ai/langflow-frontend{0}:{1},ghcr.io/langflow-ai/langflow-frontend{0}:latest', needs.get-version.outputs.nightly-build && '-nightly' || '', needs.get-version.outputs.version) }}
langflow_image: ghcr.io/langflow-ai/langflow${{ needs.get-version.outputs.nightly-build && '-nightly' || '' }}:${{ needs.get-version.outputs.version }}
steps:
- name: Check out the code at a specific ref (e.g., nightly tag)
- name: Check out the code at a specific ref
uses: actions/checkout@v4
with:
ref: ${{ needs.get-version.outputs.nightly-tag || github.ref }}
ref: ${{ inputs.nightly_tag_main || github.ref }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3