Skip to content

Commit 14e4785

Browse files
authored
Merge pull request #36 from 0xsequence/feat/docker_release_workflow
feat: docker release workflow
2 parents 7728a72 + f8a991c commit 14e4785

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

github/workflows/release.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release tag
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- name: Log into Github registry
17+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
18+
- name: Docker build and push
19+
run: |
20+
docker build --build-arg VERSION=${GITHUB_REF##*/} -t ghcr.io/0xsequence/sidekick:${GITHUB_REF##*/} -t ghcr.io/0xsequence/sidekick:latest .
21+
docker push ghcr.io/0xsequence/sidekick:${GITHUB_REF##*/}
22+
docker push ghcr.io/0xsequence/sidekick:latest

scripts/start.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
#!/bin/sh
22

3-
# Wait for database to be ready
4-
while ! nc -z $DATABASE_HOST $DATABASE_PORT; do
5-
echo "Waiting for database connection..."
6-
sleep 1
7-
done
8-
93
# Run migrations
104
pnpm prisma migrate deploy
115

0 commit comments

Comments
 (0)