From 0e3892e70283ff92e49a481dfb8ab3ff1e656bfe Mon Sep 17 00:00:00 2001 From: Sebastian Di Luzio Date: Sat, 13 Jan 2024 15:42:46 +0100 Subject: [PATCH] ci: write image name into env --- .github/workflows/pr.yml | 2 +- .github/workflows/release.dev.yml | 2 +- .github/workflows/release.prod.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4012ce10..5c75b8db 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,6 +13,6 @@ jobs: uses: actions/checkout@v4 - name: Create Image Name run: | - echo "IMAGE_NAME=ghcr.io/${GITHUB_REPOSITORY@L}-pr" >> $GITHUB_OUTPUT + echo "IMAGE_NAME=ghcr.io/${GITHUB_REPOSITORY@L}-pr" >> $GITHUB_ENV - name: Build containers run: docker compose build \ No newline at end of file diff --git a/.github/workflows/release.dev.yml b/.github/workflows/release.dev.yml index 7e77d1b5..be2f69a1 100644 --- a/.github/workflows/release.dev.yml +++ b/.github/workflows/release.dev.yml @@ -26,7 +26,7 @@ jobs: - name: Create Image Name run: | - echo "IMAGE_NAME=ghcr.io/${GITHUB_REPOSITORY@L}-${{ secrets.ENVIRONMENT }}" >> $GITHUB_OUTPUT + echo "IMAGE_NAME=ghcr.io/${GITHUB_REPOSITORY@L}-${{ secrets.ENVIRONMENT }}" >> $GITHUB_ENV - name: Build containers run: docker compose --project-name ${{ env.PROJECT_NAME }} build diff --git a/.github/workflows/release.prod.yml b/.github/workflows/release.prod.yml index 26bff1fd..db9e87b2 100644 --- a/.github/workflows/release.prod.yml +++ b/.github/workflows/release.prod.yml @@ -26,7 +26,7 @@ jobs: - name: Create Image Name run: | - echo "IMAGE_NAME=ghcr.io/${GITHUB_REPOSITORY@L}-${{ secrets.ENVIRONMENT }}" >> $GITHUB_OUTPUT + echo "IMAGE_NAME=ghcr.io/${GITHUB_REPOSITORY@L}-${{ secrets.ENVIRONMENT }}" >> $GITHUB_ENV - name: Build containers run: docker compose --project-name ${{ env.PROJECT_NAME }} build