-
Notifications
You must be signed in to change notification settings - Fork 28
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
arm64 support #256
arm64 support #256
Changes from 15 commits
e3263fd
9c9c557
93db5da
6cfd084
de35ce5
313e018
8f35df3
2dbd9c7
54dab5f
98009cc
39798c2
5e1157c
3b65343
269a965
a862640
02995db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
"email": "[email protected]" | ||
}, | ||
"plugins": [ | ||
["docker", { "registry": "ejhayes/nodejs-bull-monitor", "tagLatest": false}], | ||
["released", { "includeBotPrs": true }], | ||
["first-time-contributor"], | ||
["all-contributors", { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,11 @@ on: | |
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | ||
if: (!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')) | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- uses: oleksiyrudenko/[email protected] | ||
with: | ||
token: '${{ secrets.GH_TOKEN }}' | ||
|
||
- name: Prepare repository | ||
run: git fetch --unshallow --tags | ||
fetch-tags: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this will give us what we need but it was hard for me to determine original reasoning here for the extra steps. |
||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -34,6 +27,12 @@ jobs: | |
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
|
@@ -42,12 +41,19 @@ jobs: | |
|
||
- run: npm ci | ||
|
||
- run: npm run ci:build | ||
- run: npm run build | ||
|
||
- name: Build multi-arch image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: . | ||
push: true | ||
tags: ejhayes/nodejs-bull-monitor:latest | ||
|
||
- name: Create Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
IMAGE: 'bull-monitor:latest' | ||
run: | | ||
npx auto shipit | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,6 @@ | |
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"build": "nest build", | ||
"ci:build": "npm run build && docker-compose build bull-monitor", | ||
"ci:publish": "npm run ci:build && docker-compose push bull-monitor", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't see |
||
"format": "prettier --write .", | ||
"generate": "ACTION=createprocess MAX_JOB_DELAY_MS=200 LIMITER_MAX=200 CREATE_DELAY_MS=50 CONCURRENCY=15 ts-node bull_generator.ts", | ||
"generate:create": "ACTION=create CREATE_DELAY_MS=50 ts-node bull_generator.ts", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to have the build-push-action export to docker locally and keep the auto shipit action responsible for pushing to docker, but ran into this lmitation:
https://docs.docker.com/engine/reference/commandline/buildx_build/#docker