Skip to content

Commit

Permalink
Attempt to fix the docker build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Nov 13, 2023
1 parent d87262d commit 604b8a6
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/backend-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
# Docker images will only be pushed when we manually dispatch this workflow
workflow_dispatch:
inputs:
docker_image_tag:
description: 'Tag to use on docker image, eg. "latest", or "next"'
required: true
default: 'next'
docker_image_tag:
description: 'Tag to use on docker image, eg. "latest", or "next"'
required: true
default: "next"

jobs:
docker:
Expand All @@ -30,9 +30,6 @@ jobs:

- name: Build (production)
uses: docker/build-push-action@v3
env:
# required at build time, but can be overridden when running container
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
with:
# Do not use local dir context to ensure we can build from a commit directly
# context: .
Expand All @@ -42,12 +39,9 @@ jobs:

- name: Build (dev)
uses: docker/build-push-action@v3
env:
# required at build time, but can be overridden when running container
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
with:
# Do not use local dir context to ensure we can build from a commit directly
# context: .
file: backend.dev.Dockerfile
push: ${{ github.event_name == 'workflow_dispatch' }}
tags: joystream/pioneer-backend-dev:${{ github.event.inputs.docker_image_tag || 'next' }}
# Do not use local dir context to ensure we can build from a commit directly
# context: .
file: backend.dev.Dockerfile
push: ${{ github.event_name == 'workflow_dispatch' }}
tags: joystream/pioneer-backend-dev:${{ github.event.inputs.docker_image_tag || 'next' }}

0 comments on commit 604b8a6

Please sign in to comment.