-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #282 from Thiht/arm
Arm support
- Loading branch information
Showing
11 changed files
with
125 additions
and
150 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.cache/ | ||
.git/ | ||
.vscode/ | ||
build/ | ||
docs/ | ||
node_modules/ | ||
tests/ |
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 |
---|---|---|
|
@@ -15,12 +15,12 @@ jobs: | |
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- id: nvm | ||
run: echo ::set-output name=NVMRC::$(cat .nvmrc) | ||
|
||
- uses: actions/setup-node@v2.2.0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '${{ steps.nvm.outputs.NVMRC }}' | ||
cache: yarn | ||
|
@@ -35,22 +35,22 @@ jobs: | |
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- id: nvm | ||
run: echo ::set-output name=NVMRC::$(cat .nvmrc) | ||
|
||
- uses: actions/setup-node@v2.2.0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '${{ steps.nvm.outputs.NVMRC }}' | ||
cache: yarn | ||
|
||
- name: Setup Go environment | ||
uses: actions/setup-go@v2.1.3 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '^1.18.0' | ||
go-version: '^1.21.1' | ||
|
||
- run: yarn install --frozen-lockfile | ||
|
||
|
@@ -70,26 +70,23 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- id: extract_ref | ||
run: echo ::set-output name=GIT_REF::$(echo ${GITHUB_REF##*/}) | ||
|
||
- id: nvm | ||
run: echo ::set-output name=NVMRC::$(cat .nvmrc) | ||
|
||
- uses: actions/setup-node@v2.2.0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '${{ steps.nvm.outputs.NVMRC }}' | ||
cache: yarn | ||
|
||
- name: Setup Go environment | ||
uses: actions/setup-go@v2.1.3 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '^1.18.0' | ||
|
||
- uses: satackey/[email protected] | ||
continue-on-error: true | ||
go-version: '^1.21.1' | ||
|
||
- run: yarn install --frozen-lockfile | ||
|
||
|
@@ -100,54 +97,46 @@ jobs: | |
make VERSION=${{ steps.extract_ref.outputs.GIT_REF }} start-docker | ||
- if: startsWith(github.ref, 'refs/tags/') | ||
run: make save-docker | ||
|
||
- if: startsWith(github.ref, 'refs/tags/') | ||
uses: actions/[email protected] | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: smocker-bin | ||
path: ./build/smocker.tar.gz | ||
|
||
- if: startsWith(github.ref, 'refs/tags/') | ||
uses: actions/[email protected] | ||
with: | ||
name: smocker-docker | ||
path: /tmp/smocker.tar | ||
|
||
deploy: | ||
needs: [lint, test, build] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- id: extract_ref | ||
run: echo ::set-output name=GIT_REF::$(echo ${GITHUB_REF##*/}) | ||
|
||
- uses: actions/download-artifact@v2 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: smocker-bin | ||
path: ./build | ||
|
||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: smocker-docker | ||
path: /tmp | ||
|
||
- run: make VERSION=${{ steps.extract_ref.outputs.GIT_REF }} load-docker | ||
- run: cd build && tar -xvf smocker.tar.gz | ||
|
||
- name: Docker login | ||
uses: docker/login-action@v1.10.0 | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Deploy on Docker registry | ||
run: make VERSION=${{ steps.extract_ref.outputs.GIT_REF }} deploy-docker | ||
|
||
- name: Deploy on GitHub releases | ||
uses: softprops/action-gh-release@v0.1.5 | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: build/smocker.tar.gz | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
token: ${{ secrets.GH_TOKEN }} |
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
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.