Skip to content

Commit

Permalink
Merge pull request #1373 from yogeshojha/fix-docker-build-master
Browse files Browse the repository at this point in the history
Fix docker build on master
  • Loading branch information
yogeshojha authored Aug 16, 2024
2 parents 35a42c2 + 2eda767 commit 83d329d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/auto-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,34 @@ jobs:
issue_number: context.issue.number,
owner,
repo,
body: `👋 Hi @${author},
body: `Hey @${author}! 👋 Thanks for flagging this! 🐛🐞
Issues are only for reporting bugs or feature requests. Please read the documentation before raising an issue: https://rengine.wiki
Before we dig in, Let's make sure you have
Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.`
🔍 Gone through the documentation: https://rengine.wiki
🕵️ Make sure it's not a known issue
📝 Provided us all the details related to this bug`
});
} else if (context.eventName === 'pull_request' && context.payload.action === 'opened') {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner,
repo,
body: `👋 Hi @${author},
body: `Woohoo @${author}! 🎉 You've just dropped some hot new code! 🔥
Thank you for sending this pull request.
Please make sure you have followed our [contribution guidelines](https://github.com/yogeshojha/rengine/blob/master/.github/CONTRIBUTING.md).
We will review this PR as soon as possible. Thank you for your patience.`
Hang tight while we review this! You rock! 🤘`
});
} else if (context.eventName === 'pull_request' && context.payload.action === 'closed') {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner,
repo,
body: `🚀 Hi @${author},
You are amazing! Thank you for your contributions. Your contributions are what makes reNgine awesome!
body: `Holy smokes, @${author}! 🤯 You've just made reNgine even more awesome!
This pull request has now been closed.
We look forward to your future contributions and support.
Your code is now part of the reNgine hall of fame. 🏆
Keep the cool ideas coming - maybe next time you'll break the internet! 💻💥
Thanks`
Virtual high fives all around! 🙌`
});
}
20 changes: 12 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
build-and-push:
name: 🐳 Build and Push Docker image
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: 📥 Checkout the git repo
uses: actions/checkout@v4
Expand All @@ -34,19 +39,18 @@ jobs:
with:
images: yogeshojha/rengine
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha,prefix=sha-
type=schedule,pattern={{date 'YYYYMMDD'}}
type=raw,value=${{ matrix.platform }}-latest,enable={{is_default_branch}}
type=semver,pattern=${{ matrix.platform }}-{{version}}
type=semver,pattern=${{ matrix.platform }}-{{major}}.{{minor}}
type=semver,pattern=${{ matrix.platform }}-{{major}}
type=sha,prefix=${{ matrix.platform }}-sha-
type=schedule,pattern=${{ matrix.platform }}-{{date 'YYYYMMDD'}}
- name: 🏗️ Build and push Docker image
uses: docker/build-push-action@v5
with:
context: web/
# platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platform }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 83d329d

Please sign in to comment.