-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (32 loc) · 983 Bytes
/
cicd.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
name: CI/CD
on: push
jobs:
devimage:
name: Build and release development image
env:
version: 7.5.0
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build development image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: naosdk
tags: ${{ env.version }} ${{ github.sha }}
archs: amd64, arm64
containerfiles: ./Containerfile
build-args: version=${{ env.version }}
- name: Push development image to ghcr.io
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/hulks
username: ${{ github.actor }}
password: ${{ github.token }}