forked from UrbanOS-Examples/discovery_ui
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.09 KB
/
docker-publish.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
39
40
41
42
name: Docker publish
on:
push:
branches:
- main
release:
types:
- created
workflow_dispatch:
env:
GITHUB_BRANCH: ${{ github.event.release.tag_name }}
DOCKER_USERNAME: ${{ secrets.docker_username }}
DOCKER_PASSWORD: ${{ secrets.docker_password }}
QUAY_USERNAME: ${{ secrets.quay_username }}
QUAY_PASSWORD: ${{ secrets.quay_password }}
jobs:
dev:
name: Publish Development Image
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v2
- name: Build Image
run: docker build -t discovery_ui:build .
- name: Publish Dev Image
run: bash scripts/deploy.sh master
- name: Publish to Quay
run: bash scripts/quay.sh discovery_ui development
release:
name: Release Image
runs-on: ubuntu-latest
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v2
- name: Build Image
run: docker build -t discovery_ui:build .
- name: Publish Tagged Image
run: bash scripts/deploy.sh release