Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "chore: Release/2.1.3 Bump versions" #1376

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 33 additions & 52 deletions .github/workflows/auto-comment.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,37 @@
name: 💬 Auto Comment

on:
issues:
types: [opened]
pull_request:
types: [opened, closed]

name: 👋 Auto Comment
on: [issues, pull_request]
jobs:
auto_comment:
run:
runs-on: ubuntu-latest
steps:
- name: 🤖 Auto Comment on Issues and PRs
uses: actions/github-script@v7
- uses: bubkoo/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const { owner, repo } = context.repo;
const author = context.payload.sender.login;

if (context.eventName === 'issues' && context.payload.action === 'opened') {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner,
repo,
body: `Hey @${author}! 👋 Thanks for flagging this! 🐛🐞

Before we dig in, Let's make sure you have

🔍 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: `Woohoo @${author}! 🎉 You've just dropped some hot new code! 🔥

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: `Holy smokes, @${author}! 🤯 You've just made reNgine even more awesome!

Your code is now part of the reNgine hall of fame. 🏆

Keep the cool ideas coming - maybe next time you'll break the internet! 💻💥

Virtual high fives all around! 🙌`
});
}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
issuesOpened: >
👋 Hi @{{ author }},

Issues is only for reporting a bug/feature request. Please read documentation before raising an issue https://rengine.wiki

For very limited support, questions, and discussions, please join reNgine Discord channel: https://discord.gg/azv6fzhNCE

Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.

pullRequestOpened: >
👋 Hi @{{ author }},

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.

pullRequestClosed: >
🚀 Hi @{{ author }},

You are amazing! Thank you for your contributions. Your contributions are what makes reNgine awesome!

This pull request has now been closed.

We look forward to your more contributions and support.

Thanks
33 changes: 12 additions & 21 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🏗️ Build Docker image for pull request
name: 🌄 Build Docker image for pull request

on:
pull_request:
Expand All @@ -8,42 +8,33 @@ on:

jobs:
build:
name: 🐳 Build Docker image
name: Build Docker image
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
# - linux/arm/v7
steps:
- name: 📥 Checkout the git repo
- name: Checkout the git repo
uses: actions/checkout@v4

- name: 🖥️ Set up QEMU
uses: docker/setup-qemu-action@v3

- name: 🏗️ Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: 🏷️ Extract metadata (tags, labels) for Docker
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: yogeshojha/rengine
tags: |
type=raw,value=pr-${{ github.event.pull_request.number }}
type=sha,prefix=sha-
type=ref,event=branch
type=ref,event=pr

- name: 🏗️ Build Docker image
uses: docker/build-push-action@v5
- name: Build Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: web/
platforms: ${{ matrix.platform }}
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
42 changes: 12 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,40 @@
name: 🚀 Build and Push Docker image
name: Build Docker image

on:
push:
branches: [ master ]
release:
types: [published]
schedule:
- cron: '0 0 */5 * *' # Run every 5 days at midnight UTC
- cron: '0 18 * * 5'

jobs:
build-and-push:
name: 🐳 Build and Push Docker image
build:
name: Build Docker image
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: 📥 Checkout the git repo
- name: Checkout the git repo
uses: actions/checkout@v4

- name: 🖥️ Set up QEMU
uses: docker/setup-qemu-action@v3

- name: 🛠️ Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: 🔑 Log in to Docker Hub
uses: docker/login-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: 🏷️ Extract metadata (tags, labels) for Docker
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: yogeshojha/rengine
tags: |
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
- name: Build Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: web/
platforms: ${{ matrix.platform }}
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Loading