-
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
1 parent
880c2ab
commit 4d31f23
Showing
1 changed file
with
23 additions
and
21 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 |
---|---|---|
|
@@ -164,28 +164,30 @@ jobs: | |
uses: docker/[email protected] | ||
|
||
- name: Build and push Docker images | ||
if: steps.check.outputs.build_arch == 'true' | ||
if: ${{ steps.check.outputs.build_arch == 'true' && env.VERSION != env.LATEST_VERSION }} | ||
run: | | ||
if [[ env.VERSION != env.LATEST_VERSION ]]; then | ||
echo "PUSHING BUILD" | ||
docker buildx build --platform linux/${{ env.PLATFORM }} \ | ||
--build-arg BUILD_FROM=${{ env.BUILD_FROM }} \ | ||
--build-arg REPO_URL=https://github.com/${{ env.REPO_NAME_LC }} \ | ||
--build-arg VERSION=${{ env.VERSION }} \ | ||
--build-arg PLATFORM=${{ env.PLATFORM }} \ | ||
--push \ | ||
-t ghcr.io/${{ env.REPO_NAME_LC }}-${{ matrix.addon }}-${{ matrix.arch }}:${{ env.VERSION }} \ | ||
./${{ matrix.addon }} | ||
else | ||
echo "NOT PUSHING BUILD" | ||
docker buildx build --platform linux/${{ env.PLATFORM }} \ | ||
--build-arg BUILD_FROM=${{ env.BUILD_FROM }} \ | ||
--build-arg REPO_URL=https://github.com/${{ env.REPO_NAME_LC }} \ | ||
--build-arg VERSION=${{ env.VERSION }} \ | ||
--build-arg PLATFORM=${{ env.PLATFORM }} \ | ||
-t ghcr.io/${{ env.REPO_NAME_LC }}-${{ matrix.addon }}-${{ matrix.arch }}:${{ env.VERSION }} \ | ||
./${{ matrix.addon }} | ||
fi | ||
echo "PUSHING BUILD" | ||
docker buildx build --platform linux/${{ env.PLATFORM }} \ | ||
--build-arg BUILD_FROM=${{ env.BUILD_FROM }} \ | ||
--build-arg REPO_URL=https://github.com/${{ env.REPO_NAME_LC }} \ | ||
--build-arg VERSION=${{ env.VERSION }} \ | ||
--build-arg PLATFORM=${{ env.PLATFORM }} \ | ||
--push \ | ||
-t ghcr.io/${{ env.REPO_NAME_LC }}-${{ matrix.addon }}-${{ matrix.arch }}:${{ env.VERSION }} \ | ||
./${{ matrix.addon }} | ||
- name: Build Docker images | ||
if: ${{ steps.check.outputs.build_arch == 'true' && env.VERSION == env.LATEST_VERSION }} | ||
run: | | ||
echo "NOT PUSHING BUILD" | ||
docker buildx build --platform linux/${{ env.PLATFORM }} \ | ||
--build-arg BUILD_FROM=${{ env.BUILD_FROM }} \ | ||
--build-arg REPO_URL=https://github.com/${{ env.REPO_NAME_LC }} \ | ||
--build-arg VERSION=${{ env.VERSION }} \ | ||
--build-arg PLATFORM=${{ env.PLATFORM }} \ | ||
-t ghcr.io/${{ env.REPO_NAME_LC }}-${{ matrix.addon }}-${{ matrix.arch }}:${{ env.VERSION }} \ | ||
./${{ matrix.addon }} | ||