This repository has been archived by the owner on Apr 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (49 loc) · 1.95 KB
/
integration.yaml
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
name: Integration
on: [push, workflow_dispatch]
jobs:
build:
runs-on: [self-hosted, builder]
steps:
- name: Set environment variables
run: >
for e in $(env | grep "COLLABRY__BUILDER__");
do echo "${e#'COLLABRY__BUILDER__'}" >> $GITHUB_ENV;
done
- name: Checkout
uses: actions/checkout@v4
- name: Build docker image
run: docker build -t "${REGISTRY_URL}/collabry/frontend:${{ github.sha }}" --target full .
- name: Login docker registry
run: docker login "${REGISTRY_DOMAIN}" -u "${REGISTRY_USER}" -p "${REGISTRY_PASSWORD}"
- name: Push docker image
run: docker push "${REGISTRY_DOMAIN}/collabry/frontend:${{ github.sha }}"
lint:
needs: [build]
runs-on: [self-hosted, integration]
steps:
- name: Set environment variables
run: >
for e in $(env | grep "COLLABRY__INTEGRATION__");
do echo "${e#'COLLABRY__INTEGRATION__'}" >> $GITHUB_ENV;
done
- name: Login docker registry
run: docker login "${REGISTRY_DOMAIN}" -u "${REGISTRY_USER}" -p "${REGISTRY_PASSWORD}"
- name: Pull docker image
run: docker pull "${REGISTRY_DOMAIN}/collabry/frontend:${{ github.sha }}"
- name: Lint
run: docker run --rm "${REGISTRY_DOMAIN}/collabry/frontend:${{ github.sha }}" lint
test:
needs: [build]
runs-on: [self-hosted, integration]
steps:
- name: Set environment variables
run: >
for e in $(env | grep "COLLABRY__INTEGRATION__");
do echo "${e#'COLLABRY__INTEGRATION__'}" >> $GITHUB_ENV;
done
- name: Login docker registry
run: docker login "${REGISTRY_DOMAIN}" -u "${REGISTRY_USER}" -p "${REGISTRY_PASSWORD}"
- name: Pull docker image
run: docker pull "${REGISTRY_DOMAIN}/collabry/frontend:${{ github.sha }}"
- name: Isort
run: docker run --rm "${REGISTRY_DOMAIN}/collabry/frontend:${{ github.sha }}" test