-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.11 KB
/
base.yaml
File metadata and controls
48 lines (41 loc) · 1.11 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
name: Build & push base
on:
workflow_dispatch:
schedule:
- cron: '30 1 * * *'
push:
branches:
- main
jobs:
build:
name: Build image
runs-on: ubuntu-latest
env:
IMAGE_NAME: image
REGISTRY: ghcr.io/queil
steps:
- name: Clone the repository
uses: actions/checkout@v3
- name: "Fix no space left on device"
run: rm -rf /opt/hostedtoolcache
- name: base
id: base
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: latest ${{ github.sha }}
context: .
containerfiles: |
./images/Containerfile
- name: Log in to the GitHub Container registry
uses: redhat-actions/podman-login@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push base
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.base.outputs.image }}
tags: ${{ steps.base.outputs.tags }}
registry: ${{ env.REGISTRY }}