forked from barebox/barebox
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 813 Bytes
/
container.yml
File metadata and controls
32 lines (30 loc) · 813 Bytes
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
name: build ci container
on:
push:
branches:
- 'master'
- 'ci'
paths:
- 'test/Containerfile'
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: barebox-ci
tags: latest
dockerfiles: |
./test/Containerfile
- id: push-to-github
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/${{ github.repository }}
username: ${{ github.actor }}
password: ${{ github.token }}
- run: echo "Image pushed to ${{ steps.push-to-github.outputs.registry-paths }}"