forked from metabrainz/listenbrainz-server
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 941 Bytes
/
build-prod-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: ListenBrainz Build Production Image
on:
push:
branches: [ master ]
pull_request:
branches: [ '*' ]
types: [ opened, synchronize, reopened, ready_for_review ]
paths-ignore:
- 'listenbrainz_spark/**'
- 'requirements_spark.txt'
- 'requirements_development.txt'
- '**/Dockerfile.spark*'
- '**.yml'
- '**.md'
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
prod:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
run: echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
continue-on-error: true
- name: Build production image
run: docker build --target listenbrainz-prod --build-arg GIT_COMMIT_SHA=HEAD .