From 62fd0daf6f24679807ef004a0b419a77db610d73 Mon Sep 17 00:00:00 2001 From: jaime-ez Date: Wed, 6 Mar 2024 23:00:32 -0300 Subject: [PATCH] task: separate amd and arm docker ubuntu releases --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++-- Dockerfile | 3 --- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ad75e41e..74045d4ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -109,7 +109,35 @@ jobs: with: asset_paths: '["build/*/*.pkg"]' - docker: + docker-amd: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: deepstreamio/deepstream.io + flavor: | + latest=true + tags: | + type=semver,pattern={{version}} + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + file: Dockerfile + push: true + platforms: linux/amd64 + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + docker-arm: runs-on: ubuntu-latest steps: - uses: docker/setup-qemu-action@v1 @@ -135,7 +163,7 @@ jobs: context: . file: Dockerfile push: true - platforms: linux/amd64,linux/arm64 + platforms: linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index c48997d34..da85feea9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,5 @@ FROM node:18 as builder WORKDIR /app -# RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -# RUN unzip awscliv2.zip -# RUN ./aws/install COPY package*.json ./