-
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
08bf4b5
commit 199266e
Showing
1 changed file
with
42 additions
and
42 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 |
---|---|---|
|
@@ -4,49 +4,49 @@ inputs: | |
description: "Version number" | ||
|
||
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 | ||
using: 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: 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: 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 | ||
- 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 |