forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.73 KB
/
sandbox.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
43
44
45
46
47
48
name: Build & Push Sandbox Docker Image
on:
pull_request:
push:
branches:
- master
jobs:
push-sandbox-image:
name: Push sandbox image to GHCR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Push Sandbox Docker Image to Github Registry
uses: whoan/docker-build-with-cache-action@v5
with:
# https://docs.github.com/en/packages/learn-github-packages/publishing-a-package
username: "${{ secrets.FLYTE_BOT_USERNAME }}"
password: "${{ secrets.FLYTE_BOT_PAT }}"
image_name: ${{ github.repository_owner }}/flyte-sandbox
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
registry: ghcr.io
build_extra_args: "--target=default --compress=true"
context: ./
dockerfile: docker/sandbox/Dockerfile
push_image_and_stages: ${{ github.event_name != 'pull_request' }}
push-sandbox-dind-image:
name: Push sandbox DinD image to GHCR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Push Sandbox DinD Docker Image to Github Registry
uses: whoan/docker-build-with-cache-action@v5
with:
username: "${{ secrets.FLYTE_BOT_USERNAME }}"
password: "${{ secrets.FLYTE_BOT_PAT }}"
image_name: ${{ github.repository_owner }}/flyte-sandbox
image_tag: dind,dind-${{ github.sha }},dind-${{ github.event.ref }}
registry: ghcr.io
build_extra_args: "--target=dind --compress=true"
context: ./
dockerfile: docker/sandbox/Dockerfile
push_image_and_stages: ${{ github.event_name != 'pull_request' }}