Skip to content

Commit

Permalink
env. bye
Browse files Browse the repository at this point in the history
  • Loading branch information
mimimix committed Jan 16, 2024
1 parent d8e1479 commit 421a205
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
submodules: true
- run: |
CURRENT_BUILD_NAME = ${{ env.PROJECT_NAME }}_base:${{ matrix.target }}
CURRENT_BUILD_NAME = ${{ $PROJECT_NAME }}_base:${{ matrix.target }}
docker build -f ./base.Dockerfile \
-t ${{ CURRENT_BUILD_NAME }} \
Expand All @@ -48,9 +48,9 @@ jobs:
- uses: actions/checkout@v4
- name: Login to GitHub Package Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u "${{ github.actor }}" --password-stdin
- name: Start build ${{ env.PROJECT_NAME }} - ${{ matrix.target }}
- name: Start build ${{ $PROJECT_NAME }} - ${{ matrix.target }}
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/${{ env.PROJECT_NAME }}-${{ matrix.target }}
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/${{ $PROJECT_NAME }}-${{ matrix.target }}
echo START BUILD WITH IMAGE_ID=$IMAGE_ID
PATH_TO_MAIN=./apps/${{ matrix.target }}
Expand All @@ -61,7 +61,7 @@ jobs:
--tag $IMAGE_ID:latest \
# --cache-from type=gha \
# --cache-to type=gha,mode=max \
-t ${{ env.PROJECT_NAME }}:${{ matrix.target }} \
-t ${{ $PROJECT_NAME }}:${{ matrix.target }} \
.

docker push $IMAGE_ID:latest

0 comments on commit 421a205

Please sign in to comment.