Skip to content

Commit

Permalink
meow
Browse files Browse the repository at this point in the history
  • Loading branch information
mimimix committed Jan 16, 2024
1 parent 859124f commit ae81814
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ jobs:
steps:
- uses: TooMuch4U/[email protected]
- uses: actions/checkout@v4
- name: Log into github packages
- 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 $PROJECT_NAME - ${{ matrix.target }}
run: |
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 }}
echo PATH_TO_MAIN=$PATH_TO_MAIN
docker build -f $PATH_TO_MAIN/Dockerfile \
--build-arg PATH_TO_MAIN=$PATH_TO_MAIN \
--tag $IMAGE_ID:latest \
# --cache-from type=gha \
# --cache-to type=gha,mode=max \
-t ${{ PROJECT_NAME }}:${{ matrix.target }} \
.
docker push $IMAGE_ID:latest
# - name: Start build $PROJECT_NAME - ${{ matrix.target }}
# run: |
# 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 }}
# echo PATH_TO_MAIN=$PATH_TO_MAIN
#
# docker build -f $PATH_TO_MAIN/Dockerfile \
# --build-arg PATH_TO_MAIN=$PATH_TO_MAIN \
# --tag $IMAGE_ID:latest \
## --cache-from type=gha \
## --cache-to type=gha,mode=max \
# -t ${{ PROJECT_NAME }}:${{ matrix.target }} \
# .
#
# docker push $IMAGE_ID:latest

0 comments on commit ae81814

Please sign in to comment.