-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (40 loc) Β· 1.39 KB
/
build.addonbase7.yaml
File metadata and controls
42 lines (40 loc) Β· 1.39 KB
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
#### Publish tags to docker hub
name: π¦ Deploy to netdaemon_addonbase:7
on:
workflow_dispatch:
jobs:
deploy:
name: π¦ Deploy to netdaemon_base:7
runs-on: ubuntu-latest
environment: CI - release environment
steps:
- name: π€ Checkout the repository
uses: actions/checkout@main
- name: π Set up QEMU
uses: docker/setup-qemu-action@v1
- name: π§ Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: π§° Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: π Login to Docker hub
uses: docker/login-action@v1.10.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: π Login to GitHub Container Registry
uses: docker/login-action@v1.10.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: π οΈ Run Buildx
run: |
docker buildx build \
--platform linux/arm,linux/arm64,linux/amd64 \
--output "type=image,push=true" \
--no-cache \
--file ./addon_base/Dockerfile7 . \
--compress \
--tag "netdaemon/netdaemon_addonbase:7" \
--tag "ghcr.io/net-daemon/netdaemon_addonbase:7"