This repository was archived by the owner on Mar 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
60 lines (55 loc) · 1.97 KB
/
docker_dev.yml
File metadata and controls
60 lines (55 loc) · 1.97 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Push Docker DEV Image
on:
workflow_dispatch: # Allow manual trigger
workflow_run:
workflows: ["Omnia Tests"] # Depend on success from tests
types: [completed]
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
steps:
- uses: actions/checkout@v3
with:
ref: 'develop'
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
id: buildx
with:
install: true
- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Build and Publish Deployer Image to Github Packages
# if: ${{ github.event.workflow_run.conclusion == 'success' }} # Only if tests passed
# uses: docker/build-push-action@v3
# with:
# context: .
# file: ./docker/deployer/Dockerfile
# platforms: linux/amd64,linux/arm64
# push: ${{ github.event_name != 'pull_request' }} # Build only on push to master
# tags: ghcr.io/chronicleprotocol/deployer:latest,ghcr.io/chronicleprotocol/deployer:dev
# cache-from: type=gha
# cache-to: type=gha,mode=max
- name: Build and Publish Omnia DEV Image to Github Packages
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch'}} # Only if tests passed or triggered manually
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }} # Build only on push to master
tags: ghcr.io/chronicleprotocol/omnia:dev
cache-from: type=gha
cache-to: type=gha,mode=max