-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.61 KB
/
ci.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
name: Continuous integration
on:
push:
# Sequence of patterns matched against refs/heads
branches: [master]
jobs:
test:
# needs: lint
name: Test code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout submodules
shell: bash
run: |
# If your submodules are configured to use SSH instead of HTTPS please uncomment the following line
# git config --global url."https://github.com/".insteadOf "git@github.com:"
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Build image
run: |
sed -i "s/dev/latest/g" pgadmin4/config.yaml
sed -i "s/imageaftercd/image/g" pgadmin4/config.yaml
docker run --rm --privileged \
-v ~/.docker:/root/.docker \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":/data homeassistant/amd64-builder \
--addon \
--target pgadmin4 --all \
--docker-user ${{ secrets.DOCKER_USERNAME }} \
--docker-password ${{ secrets.DOCKER_PASSWORD }}
--cache-tag cache
update_release_draft:
name: Release Drafter
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}