Skip to content

Commit

Permalink
ci: write image name into env
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeanerd committed Jan 13, 2024
1 parent b413da4 commit 0e3892e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/release.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e3892e

Please sign in to comment.