forked from billchurch/webssh2
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use docker build to create multi-arch images (billchurch#202)
* Buildx docker image * Doker hub user on image name * Change destination platforms Co-authored-by: Matteo Pietro Dazzi <[email protected]>
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Build only image | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build image job | ||
steps: | ||
- name: Checkout master | ||
uses: actions/checkout@master | ||
- name: Build image | ||
uses: ilteoood/docker_buildx@master | ||
with: | ||
tag: latest,0.3.0 | ||
platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7 | ||
imageName: ${{ secrets.DOCKER_HUB_USER }}/webssh2 |
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,23 @@ | ||
name: Build and publish image | ||
on: | ||
release: | ||
types: [published] | ||
schedule: | ||
- cron: '0 6 * * 1' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build image job | ||
steps: | ||
- name: Checkout master | ||
uses: actions/checkout@master | ||
- name: Build and publish image | ||
uses: ilteoood/docker_buildx@master | ||
with: | ||
tag: latest,0.3.0 | ||
imageName: ${{ secrets.DOCKER_HUB_USER }}/webssh2 | ||
platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7 | ||
publish: true | ||
dockerHubUser: ${{ secrets.DOCKER_HUB_USER }} | ||
dockerHubPassword: ${{ secrets.DOCKER_HUB_PASSWORD }} |