-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (44 loc) · 1.1 KB
/
next-build.yaml
File metadata and controls
50 lines (44 loc) · 1.1 KB
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
42
43
44
45
46
47
48
49
50
name: next-build.yaml
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Log in to ghcr.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ github.repository }}
tags: |
next
${{ github.sha }}
containerfiles: ./Containerfile
extra-args: |
--squash
- name: Push Image
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io