-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mimimix
committed
Jan 16, 2024
1 parent
859124f
commit ae81814
Showing
1 changed file
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |