-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 965 Bytes
/
podman-build.yml
File metadata and controls
41 lines (35 loc) · 965 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
33
34
35
36
37
38
39
40
41
name: Podman build and push to GitHub Container Registry
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
on:
pull_request:
branches-ignore:
- "**renovate**"
paths:
- ".github/**"
- "build/**"
- "src/**"
types:
- opened
- reopened
- edited
push:
branches-ignore:
- "**renovate**"
paths:
- ".github/**"
- "build/**"
- "src/**"
tags:
- "**"
# Creates button in web UI to run the workflow manually
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | podman login -u "${{ github.repository_owner }}" --password-stdin ghcr.io
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and push images
run: bash .github/workflows/github-actions-podman-build.sh