forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1017 Bytes
/
docker.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
name: Build docker images
on:
push: # for demo only
schedule:
- cron: "28 4 * * *"
permissions:
packages: write # docker push ghcr.io
jobs:
docker:
strategy:
fail-fast: false
matrix:
include:
- name: sof_builder
docker-tag: sof
build-dir: scripts/docker_build/sof_builder
- name: sof_qemu
docker-tag: sofqemu
build-dir: scripts/docker_build/sof_qemu
name: ${{ matrix.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build image
run: ./docker-build.sh
working-directory: ${{ matrix.build-dir }}
- name: Docker push
env:
REMOTE_TAG: ghcr.io/${{ github.repository_owner }}/${{ matrix.docker-tag }}:latest
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker tag ${{ matrix.docker-tag }} $REMOTE_TAG
docker push $REMOTE_TAG