-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 1.01 KB
/
harbour.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
name: Build and export image
on:
push:
branches: ["main"]
jobs:
build-image:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Test
run: pip install poetry && poetry install && poetry run pytest
- name: Build and export
id: build
uses: cern-sis/gh-workflows/.github/actions/[email protected]
with:
platforms: linux/amd64,linux/arm64
image: cern-sis/library-notifications-service
registry: registry.cern.ch
cache: false
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Deploy with new image
uses: cern-sis/gh-workflows/.github/actions/[email protected]
with:
event-type: update
images: ${{ steps.build.outputs.image-tags }}
token: ${{ secrets.PAT_FIRE_EVENTS_ON_CERN_SIS_KUBERNETES }}