From 60c92fb2974b3cc8923f78d3bb0b78310dac0e68 Mon Sep 17 00:00:00 2001 From: Jay Zhang Date: Thu, 1 Aug 2024 14:49:51 +0000 Subject: [PATCH 1/3] feat: build playground image --- .github/workflows/build-docker.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index 0642022c..bbd6ec0e 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -15,7 +15,8 @@ on: branches: [ "main" ] env: - IMAGE_NAME: astra_agents_server + SERVER_IMAGE_NAME: astra_agents_server + PLAYGROUND_IMAGE_NAME: astra_playground jobs: build: @@ -29,13 +30,23 @@ jobs: - id: pre-step shell: bash run: echo "image-tag=$(git describe --tags --always)" >> $GITHUB_OUTPUT - - name: Build & Publish to Github Container Registry + - name: Build & Publish Docker Image for Agents Server uses: elgohr/Publish-Docker-Github-Action@v5 with: - name: ${{ github.repository_owner }}/${{ env.IMAGE_NAME }} + name: ${{ github.repository_owner }}/${{ env.SERVER_IMAGE_NAME }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} registry: ghcr.io tags: "${{ github.ref == 'refs/heads/main' && 'latest,' || '' }}${{ steps.pre-step.outputs.image-tag }}" no_push: ${{ github.event_name == 'pull_request' }} + - name: Build & Publish Docker Image for Playground + uses: elgohr/Publish-Docker-Github-Action@v5 + with: + name: ${{ github.repository_owner }}/${{ env.PLAYGROUND_IMAGE_NAME }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io + workdir: playground + tags: "${{ github.ref == 'refs/heads/main' && 'latest,' || '' }}${{ steps.pre-step.outputs.image-tag }}" + no_push: ${{ github.event_name == 'pull_request' }} From ea10cdab828c3d14906d379d64229afa6bc0cdbf Mon Sep 17 00:00:00 2001 From: Jay Zhang Date: Thu, 1 Aug 2024 14:50:20 +0000 Subject: [PATCH 2/3] test: build --- .github/workflows/build-docker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index bbd6ec0e..f03bc531 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -2,7 +2,7 @@ name: Build Docker on: push: - branches: [ "main" ] + branches: [ "main", "feature/playground-docker" ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] paths-ignore: From 23db7bc8d31985975167727b19366ff5eeead81d Mon Sep 17 00:00:00 2001 From: Jay Zhang Date: Thu, 1 Aug 2024 14:55:53 +0000 Subject: [PATCH 3/3] Revert "test: build" This reverts commit ea10cdab828c3d14906d379d64229afa6bc0cdbf. --- .github/workflows/build-docker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index f03bc531..bbd6ec0e 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -2,7 +2,7 @@ name: Build Docker on: push: - branches: [ "main", "feature/playground-docker" ] + branches: [ "main" ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] paths-ignore: