Skip to content

Commit

Permalink
task: separate amd and arm docker ubuntu releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jaime-ez committed Mar 7, 2024
1 parent fb64137 commit 62fd0da
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

Expand Down
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 ./

Expand Down

0 comments on commit 62fd0da

Please sign in to comment.