-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (33 loc) · 946 Bytes
/
Containers.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
name: Containers
on:
push:
paths:
- '.github/*.dockerfile'
- '.github/workflows/Containers.yml'
schedule:
- cron: '0 0 * * 5'
workflow_dispatch:
jobs:
Container:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- impl
- sim
name: '🛳️ ${{ matrix.image }}'
steps:
- name: '🧰 Repository Checkout'
uses: actions/checkout@v4
- name: '⛴️ Build neorv32/${{ matrix.image }}'
run: docker build -t ghcr.io/stnolting/neorv32/${{ matrix.image }} - < .github/${{ matrix.image }}.dockerfile
- name: '🔑 Login to ghcr.io'
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: gha
password: ${{ secrets.PACKAGE_TOKEN }}
- name: '🛰️ Push image to ghcr.io'
run: docker push ghcr.io/stnolting/neorv32/${{ matrix.image }}