-
Notifications
You must be signed in to change notification settings - Fork 800
40 lines (37 loc) · 1.46 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
# This is a basic workflow to help you get started with Actions
name: Publish Docker image
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
release:
types: [ released ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
push_server_to_registry:
name: Push Docker server image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub (server build)
uses: docker/build-push-action@v2
with:
username: ${{ secrets.CADENCE_SERVER_DOCKERHUB_USERNAME }}
password: ${{ secrets.CADENCE_SERVER_DOCKERHUB_TOKEN }}
repository: ubercadence/server
build_args: TARGET=server
tag_with_ref: true
push_server_auto_setup_to_registry:
name: Push Docker server auto-setup images to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub (auto-setup build)
uses: docker/build-push-action@v2
with:
username: ${{ secrets.CADENCE_SERVER_DOCKERHUB_USERNAME }}
password: ${{ secrets.CADENCE_SERVER_DOCKERHUB_TOKEN }}
repository: ubercadence/server
build_args: TARGET=auto-setup
tags: ${{ github.event.release.tag_name }}-auto-setup, latestrelease-auto-setup