Skip to content

Commit

Permalink
Build in a single step
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Dec 4, 2024
1 parent 0b6e29d commit 3e7b4ab
Showing 1 changed file with 17 additions and 36 deletions.
53 changes: 17 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ jobs:
build:
name: Build
runs-on: ubuntu-22.04

services:

redis:
image: redis:alpine
ports:
- 6379/tcp

postgresql:
image: quay.io/acoustid/postgresql:master
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432/tcp
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password

steps:

- name: Check out code
Expand Down Expand Up @@ -42,42 +59,6 @@ jobs:
- name: Build binaries
run: ./scripts/ci/build.sh

- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: dist
path: dist

services:

redis:
image: redis:alpine
ports:
- 6379/tcp

postgresql:
image: quay.io/acoustid/postgresql:master
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432/tcp
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password

docker:
name: Build Docker images
runs-on: ubuntu-22.04
needs: build
steps:

- name: Check out code
uses: actions/checkout@v4

- name: Download binaries
uses: actions/download-artifact@v4
with:
name: dist

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down

0 comments on commit 3e7b4ab

Please sign in to comment.