Skip to content

Commit 62fd0da

Browse files
committed
task: separate amd and arm docker ubuntu releases
1 parent fb64137 commit 62fd0da

2 files changed

Lines changed: 30 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,35 @@ jobs:
109109
with:
110110
asset_paths: '["build/*/*.pkg"]'
111111

112-
docker:
112+
docker-amd:
113+
runs-on: ubuntu-latest
114+
steps:
115+
- uses: actions/checkout@v3
116+
- name: Log in to Docker Hub
117+
uses: docker/login-action@v2
118+
with:
119+
username: ${{ secrets.DOCKERHUB_USERNAME }}
120+
password: ${{ secrets.DOCKERHUB_TOKEN }}
121+
- name: Extract metadata (tags, labels) for Docker
122+
id: meta
123+
uses: docker/metadata-action@v4
124+
with:
125+
images: deepstreamio/deepstream.io
126+
flavor: |
127+
latest=true
128+
tags: |
129+
type=semver,pattern={{version}}
130+
- name: Build and push Docker image
131+
uses: docker/build-push-action@v4
132+
with:
133+
context: .
134+
file: Dockerfile
135+
push: true
136+
platforms: linux/amd64
137+
tags: ${{ steps.meta.outputs.tags }}
138+
labels: ${{ steps.meta.outputs.labels }}
139+
140+
docker-arm:
113141
runs-on: ubuntu-latest
114142
steps:
115143
- uses: docker/setup-qemu-action@v1
@@ -135,7 +163,7 @@ jobs:
135163
context: .
136164
file: Dockerfile
137165
push: true
138-
platforms: linux/amd64,linux/arm64
166+
platforms: linux/arm64
139167
tags: ${{ steps.meta.outputs.tags }}
140168
labels: ${{ steps.meta.outputs.labels }}
141169

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
FROM node:18 as builder
22
WORKDIR /app
3-
# RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
4-
# RUN unzip awscliv2.zip
5-
# RUN ./aws/install
63

74
COPY package*.json ./
85

0 commit comments

Comments
 (0)