From 14c97738905dfff7d72d3b2b006e753eb9845050 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Mon, 12 Feb 2024 12:31:04 +0100 Subject: [PATCH] ci(agent): Add `GIT_REVISION` label to Docker builds --- .github/workflows/autogpt-docker-ci.yml | 2 ++ .github/workflows/autogpt-docker-release.yml | 1 + .github/workflows/autogpts-ci.yml | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autogpt-docker-ci.yml b/.github/workflows/autogpt-docker-ci.yml index dc555c38..cc57182f 100644 --- a/.github/workflows/autogpt-docker-ci.yml +++ b/.github/workflows/autogpt-docker-ci.yml @@ -52,6 +52,7 @@ jobs: context: autogpts/autogpt build-args: BUILD_TYPE=${{ matrix.build-type }} tags: ${{ env.IMAGE_NAME }} + labels: GIT_REVISION=${{ github.sha }} load: true # save to docker images # cache layers in GitHub Actions cache to speed up builds cache-from: type=gha,scope=autogpt-docker-${{ matrix.build-type }} @@ -122,6 +123,7 @@ jobs: tags: > ${{ env.IMAGE_NAME }}, ${{ env.DEPLOY_IMAGE_NAME }}:${{ env.DEV_IMAGE_TAG }} + labels: GIT_REVISION=${{ github.sha }} load: true # save to docker images # cache layers in GitHub Actions cache to speed up builds cache-from: type=gha,scope=autogpt-docker-dev diff --git a/.github/workflows/autogpt-docker-release.yml b/.github/workflows/autogpt-docker-release.yml index 4213c78b..a4116c9f 100644 --- a/.github/workflows/autogpt-docker-release.yml +++ b/.github/workflows/autogpt-docker-release.yml @@ -56,6 +56,7 @@ jobs: ${{ env.IMAGE_NAME }}, ${{ env.DEPLOY_IMAGE_NAME }}:latest, ${{ env.DEPLOY_IMAGE_NAME }}:${{ steps.sanitize_tag.outputs.tag }} + labels: GIT_REVISION=${{ github.sha }} # cache layers in GitHub Actions cache to speed up builds cache-from: ${{ !inputs.no_cache && 'type=gha' || '' }},scope=autogpt-docker-release diff --git a/.github/workflows/autogpts-ci.yml b/.github/workflows/autogpts-ci.yml index 0385470a..ebe4992e 100644 --- a/.github/workflows/autogpts-ci.yml +++ b/.github/workflows/autogpts-ci.yml @@ -61,7 +61,6 @@ jobs: env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} AGENT_NAME: ${{ matrix.agent-name }} - HELICONE_API_KEY: ${{ secrets.HELICONE_API_KEY }} REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt HELICONE_CACHE_ENABLED: false HELICONE_PROPERTY_AGENT: ${{ matrix.agent-name }}