Skip to content

Commit

Permalink
Try different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Sep 28, 2023
1 parent 1a8a683 commit 743a24e
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,6 @@ jobs:
run: |
docker load --input /tmp/app.tar
- name: Build docker images
run: |
echo "::remove-matcher owner=csc::"
# build docker images
# build remaining docker images
for image in {"api","job","exceptionless"}; do
pwd
echo $image
docker buildx build --cache-from type=gha --cache-to type=gha,mode=min --tag exceptionless/$image-ci:latest --target $image --load .
done
- name: Login to GitHub Container Registry
if: "${{ env.DOCKER_USERNAME != '' }}"
uses: docker/login-action@v2
Expand All @@ -198,29 +186,20 @@ jobs:
if: "${{ env.DOCKER_USERNAME != '' }}"
run: |
echo "::remove-matcher owner=csc::"
# tag and push docker images
# tag and push docker image
for image in {"api","job","app","exceptionless"}; do
docker image tag exceptionless/$image-ci:latest exceptionless/$image-ci:$VERSION
docker image tag exceptionless/$image-ci:latest ghcr.io/exceptionless/exceptionless/$image-ci:$VERSION
docker image tag exceptionless/$image-ci:latest ghcr.io/exceptionless/exceptionless/$image-ci:latest
docker image push --all-tags exceptionless/$image-ci
docker buildx build . --target $image --platform linux/amd64 --output "type=image,push=true" --cache-from type=gha --cache-to type=gha,mode=min --tag exceptionless/$image-ci:$VERSION --tag exceptionless/$image-ci:latest --tag ghcr.io/exceptionless/exceptionless/$image:$VERSION --tag ghcr.io/exceptionless/exceptionless/$image:latest
done
#docker buildx build . --target exceptionless7 --platform linux/amd64 --output "type=image,push=true" --cache-from type=gha --cache-to type=gha,mode=min --tag exceptionless/exceptionless-ci:$VERSION-elasticsearch7 --tag exceptionless/exceptionless-ci:latest-elasticsearch7 --tag ghcr.io/exceptionless/exceptionless/exceptionless:$VERSION-elasticsearch7 --tag ghcr.io/exceptionless/exceptionless/exceptionless:latest-elasticsearch7
- name: Publish Release Packages
if: "${{ env.DOCKER_USERNAME != '' && startsWith(github.ref, 'refs/tags/v') && github.event_name != 'pull_request' }}"
run: |
echo "::remove-matcher owner=csc::"
# tag and push docker images
# tag and push docker image
for image in {"api","job","app","exceptionless"}; do
docker image tag exceptionless/$image-ci:latest exceptionless/$image:$VERSION
docker image tag exceptionless/$image-ci:latest exceptionless/$image:latest
docker image push --all-tags exceptionless/$image
docker buildx build . --target $image --platform linux/amd64 --output "type=image,push=true" --cache-from type=gha --cache-to type=gha,mode=min --tag exceptionless/$image:$VERSION --tag exceptionless/$image:latest
done
docker buildx build --target exceptionless7 --platform linux/amd64 --output "type=image,push=true" . --tag exceptionless/exceptionless:$VERSION-elasticsearch7 --tag exceptionless/exceptionless:latest-elasticsearch7
docker buildx build . --target exceptionless7 --platform linux/amd64 --output "type=image,push=true" --cache-from type=gha --cache-to type=gha,mode=min --tag exceptionless/exceptionless:$VERSION-elasticsearch7 --tag exceptionless/exceptionless:latest-elasticsearch7
- name: Install Helm
if: "${{ env.DOCKER_USERNAME != '' && github.event_name != 'pull_request' }}"
Expand Down

0 comments on commit 743a24e

Please sign in to comment.