Skip to content

Commit

Permalink
self-hosted uhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
mimimix committed Jan 16, 2024
1 parent 68beae0 commit 502923f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,24 @@ jobs:
- pingserver
steps:
- uses: TooMuch4U/[email protected]
- uses: actions/checkout@v4
- name: Log into github packages
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u "${{ github.actor }}" --password-stdin
- uses: actions/checkout@v4
- 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
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 502923f

Please sign in to comment.