-
Notifications
You must be signed in to change notification settings - Fork 29
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 #29 from Zibbp/develop
Support for multi-architect builds
- Loading branch information
Showing
3 changed files
with
27 additions
and
15 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 |
---|---|---|
|
@@ -12,9 +12,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: "Automated Version Bump" | ||
uses: "phips28/gh-action-bump-version@master" | ||
with: | ||
|
@@ -24,16 +23,26 @@ jobs: | |
- name: Read package.json | ||
uses: tyankatsu0105/read-package-version-actions@v1 | ||
id: package-version | ||
- name: Publish to Docker Hub | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
name: zibbp/radium | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
dockerfile: ./Dockerfile | ||
context: "." | ||
tags: "latest,${{ steps.package-version.outputs.version }}" | ||
- name: Commit bumped version | ||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
platforms: linux/amd64,linux/arm64,linux/arm/v7 | ||
push: true | ||
tags: | | ||
zibbp/radium:latest | ||
zibbp/radium:${{ steps.package-version.outputs.version }} | ||
- name: Bump version | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: "Updated version to ${{ steps.bump_version.outputs.next-version }}" |
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,4 +1,4 @@ | ||
FROM mhart/alpine-node:12 | ||
FROM node:12.19.0-alpine3.12 | ||
|
||
# create destination directory | ||
WORKDIR /opt/app | ||
|
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