diff --git a/actions/action-cli/action.yml b/actions/action-cli/action.yml index 973683f..c420657 100644 --- a/actions/action-cli/action.yml +++ b/actions/action-cli/action.yml @@ -3,7 +3,8 @@ inputs: version: description: "Version number" -jobs: +runs: + using: composite build-and-upload: name: ${{ matrix.platform.os_name }} with rust ${{ matrix.toolchain }} runs-on: ${{ matrix.platform.os }} diff --git a/actions/action-dockerimages/action.yml b/actions/action-dockerimages/action.yml index 903494e..59fd90a 100644 --- a/actions/action-dockerimages/action.yml +++ b/actions/action-dockerimages/action.yml @@ -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/action-set-json-field@v2.1 - with: - file: server/package.json - field: version - value: ${{ inputs.version }} + - name: Update server package.json version + uses: jossef/action-set-json-field@v2.1 + with: + file: server/package.json + field: version + value: ${{ inputs.version }} - - name: Update ui package.json version - uses: jossef/action-set-json-field@v2.1 - with: - file: ui/package.json - field: version - value: ${{ inputs.version }} + - name: Update ui package.json version + uses: jossef/action-set-json-field@v2.1 + 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