-
Notifications
You must be signed in to change notification settings - Fork 11k
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
6730a3c
commit f1e6e92
Showing
1,350 changed files
with
11,562 additions
and
30,005 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@rocket.chat/meteor': patch | ||
--- | ||
|
||
Bump @rocket.chat/meteor version. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -17,36 +17,21 @@ inputs: | |
required: false | ||
description: 'Containers to build along with Rocket.Chat' | ||
type: string | ||
turbo-cache: | ||
required: false | ||
description: 'Enable turbo cache' | ||
default: 'true' | ||
publish-image: | ||
required: false | ||
description: 'Publish image' | ||
default: 'true' | ||
setup: | ||
required: false | ||
description: 'Setup node.js' | ||
default: 'true' | ||
NPM_TOKEN: | ||
required: false | ||
description: 'NPM token' | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Login to GitHub Container Registry | ||
if: inputs.publish-image == 'true' &&(github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop') | ||
if: (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop') | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ inputs.CR_USER }} | ||
password: ${{ inputs.CR_PAT }} | ||
|
||
- name: Restore build | ||
uses: actions/download-artifact@v4 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: build | ||
path: /tmp/build | ||
|
@@ -57,21 +42,17 @@ runs: | |
cd /tmp/build | ||
tar xzf Rocket.Chat.tar.gz | ||
rm Rocket.Chat.tar.gz | ||
- uses: rharkor/[email protected] | ||
# if we are testing a PR from a fork, we already called the turbo cache at this point, so it should be false | ||
if: inputs.turbo-cache == 'true' | ||
- uses: dtinth/setup-github-actions-caching-for-turbo@v1 | ||
|
||
- name: Setup NodeJS | ||
uses: ./.github/actions/setup-node | ||
if: inputs.setup == 'true' | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache-modules: true | ||
install: true | ||
NPM_TOKEN: ${{ inputs.NPM_TOKEN }} | ||
|
||
- run: yarn build | ||
if: inputs.setup == 'true' | ||
shell: bash | ||
|
||
- name: Build Docker images | ||
|
@@ -82,14 +63,9 @@ runs: | |
docker compose -f docker-compose-ci.yml build "${args[@]}" | ||
- name: Publish Docker images to GitHub Container Registry | ||
if: inputs.publish-image == 'true' && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop') | ||
if: (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop') | ||
shell: bash | ||
run: | | ||
args=(rocketchat ${{ inputs.build-containers }}) | ||
docker compose -f docker-compose-ci.yml push "${args[@]}" | ||
- name: Clean up temporary files | ||
shell: bash | ||
run: | | ||
sudo rm -rf /tmp/bundle |
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
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
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
Oops, something went wrong.