Skip to content

Commit 75f6631

Browse files
committed
fix: add docker builds to GH build workflow
1 parent d9e5dfe commit 75f6631

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ jobs:
6666
tag: v${{ needs.release.outputs.version }}
6767
asset_name: storage-api-macos-x86_64.tar.gz
6868
overwrite: true
69-
# - name: Set up Docker Buildx
70-
# uses: docker/setup-buildx-action@v1
71-
# - name: Login to DockerHub
72-
# uses: docker/login-action@v1
73-
# with:
74-
# username: ${{ secrets.DOCKER_USERNAME }}
75-
# password: ${{ secrets.DOCKER_PASSWORD }}
76-
# - name: Build and push
77-
# uses: docker/build-push-action@v2
78-
# with:
79-
# context: .
80-
# file: gh-Dockerfile
81-
# push: true
82-
# tags: supabase/storage-api:latest,supabase/storage-api:0.0.1
69+
- name: Set up Docker Buildx
70+
uses: docker/setup-buildx-action@v1
71+
- name: Login to DockerHub
72+
uses: docker/login-action@v1
73+
with:
74+
username: ${{ secrets.DOCKER_USERNAME }}
75+
password: ${{ secrets.DOCKER_PASSWORD }}
76+
- name: Build and push
77+
uses: docker/build-push-action@v2
78+
with:
79+
context: .
80+
file: gh-Dockerfile
81+
push: true
82+
tags: supabase/storage-api:latest,supabase/storage-api:v${{ needs.release.outputs.version }}
8383

8484
build-arm:
8585
name: Build ARM64 artifact

gh-Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM debian:stable-slim
2-
COPY ./bin/storage-api-linux /bin/
3-
ENTRYPOINT "/bin/storage-api-linux"
2+
COPY storage-api-x86_64 /bin/
3+
ENTRYPOINT "/bin/storage-api-x86_64"
44
EXPOSE 5000

0 commit comments

Comments
 (0)