fix docker tags on release process (#2196)
* fix docker tags on release process * wait
This commit is contained in:
parent
ca660cf8df
commit
dceffa6e6f
1 changed files with 6 additions and 6 deletions
12
.github/workflows/docker-build.yml
vendored
12
.github/workflows/docker-build.yml
vendored
|
|
@ -35,15 +35,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ inputs.release_type }}" == "base" ]]; then
|
if [[ "${{ inputs.release_type }}" == "base" ]]; then
|
||||||
echo "tags=langflowai/langflow:base-${{ inputs.version }}" >> $GITHUB_OUTPUT
|
echo "tags=langflowai/langflow:base-${{ inputs.version }}" >> $GITHUB_OUTPUT
|
||||||
|
echo "file=./docker/build_and_push_base.Dockerfile" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "tags=langflowai/langflow:${{ inputs.version }},langflowai/langflow:1.0-alpha" >> $GITHUB_OUTPUT
|
echo "tags=langflowai/langflow:${{ inputs.version }},langflowai/langflow:1.0-alpha" >> $GITHUB_OUTPUT
|
||||||
|
echo "file=./docker/build_and_push.Dockerfile" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
build_base:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: setup
|
needs: setup
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
file: [./docker/build_and_push_base.Dockerfile, ]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|
@ -79,10 +78,9 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
platforms: "linux/amd64,linux/arm64/v8"
|
platforms: "linux/amd64,linux/arm64/v8"
|
||||||
file: ${{ matrix.file }}
|
file: ${{ needs.setup.outputs.file }}
|
||||||
tags: ${{ needs.setup.outputs.tags }}
|
tags: ${{ needs.setup.outputs.tags }}
|
||||||
|
|
||||||
|
|
||||||
build_components:
|
build_components:
|
||||||
if: ${{ inputs.release_type == 'main' }}
|
if: ${{ inputs.release_type == 'main' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -106,6 +104,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Wait for Docker Hub to propagate (for backend)
|
||||||
|
run: sleep 120
|
||||||
- name: Build and push ${{ matrix.component }}
|
- name: Build and push ${{ matrix.component }}
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue