forked from mpe/ci-scripts
-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (30 loc) · 1.08 KB
/
deploy.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
name: Build & publish docker image
on:
workflow_dispatch:
push:
branches:
- deploy
jobs:
build:
runs-on: ubuntu-latest
environment: docker-deploy
strategy:
matrix:
subarch: [ppc64le]
image: [ ubuntu, [email protected], [email protected], [email protected], [email protected], [email protected], fedora, fedora@40, fedora@39, fedora@38, fedora@37, fedora@36, fedora@35, fedora@34, fedora@33, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected] ]
env:
SUBARCH: ${{ matrix.subarch }}
IMAGE: ${{ matrix.image }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build docker image
run: make -C build rebuild-image@$SUBARCH@$IMAGE
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: linuxppc
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push docker image
run: make -C build push-image@$SUBARCH@$IMAGE