-
Notifications
You must be signed in to change notification settings - Fork 3
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
6d83417
commit 08bf4b5
Showing
2 changed files
with
45 additions
and
43 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
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 |
---|---|---|
|
@@ -3,49 +3,50 @@ inputs: | |
version: | ||
description: "Version number" | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
runs: | ||
composite: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Update server package.json version | ||
uses: jossef/[email protected] | ||
with: | ||
file: server/package.json | ||
field: version | ||
value: ${{ inputs.version }} | ||
- name: Update server package.json version | ||
uses: jossef/[email protected] | ||
with: | ||
file: server/package.json | ||
field: version | ||
value: ${{ inputs.version }} | ||
|
||
- name: Update ui package.json version | ||
uses: jossef/[email protected] | ||
with: | ||
file: ui/package.json | ||
field: version | ||
value: ${{ inputs.version }} | ||
- name: Update ui package.json version | ||
uses: jossef/[email protected] | ||
with: | ||
file: ui/package.json | ||
field: version | ||
value: ${{ inputs.version }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: MAIF/wasmo | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
# platforms: linux/amd64 | ||
file: ./Dockerfile | ||
push: true | ||
tags: maif/wasmo:${{ inputs.version }},maif/wasmo:latest | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: MAIF/wasmo | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
# platforms: linux/amd64 | ||
file: ./Dockerfile | ||
push: true | ||
tags: maif/wasmo:${{ inputs.version }},maif/wasmo:latest |