Skip to content

Commit

Permalink
fix action dockerimages
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Feb 8, 2024
1 parent 08bf4b5 commit 199266e
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions actions/action-dockerimages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 199266e

Please sign in to comment.