-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (33 loc) · 969 Bytes
/
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
39
40
41
42
name: Image
on:
push:
branches:
- 'master'
paths:
- 'image/**'
- '.github/workflows/image.yml'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install management dependencies
run: |
pip install argcmdr==0.13.1
# Currently only supports jupyter-service image
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build images and push to container registry
run: manage --show image jupyter-service build --platform=amd64 --platform=arm64 --push