-
Notifications
You must be signed in to change notification settings - Fork 28
41 lines (35 loc) · 1.04 KB
/
container-linux.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
33
34
35
36
37
38
39
40
41
# Build and push Linux builder container
name: Container - Linux
on:
push:
branches: [main]
paths: [.github/workflows/container-linux.yml, builder/linux/*]
pull_request:
branches: [main]
paths: [.github/workflows/container-linux.yml, builder/linux/*]
schedule:
- cron: "40 14 1 * *"
workflow_dispatch:
permissions:
contents: read
packages: write
# Separate PRs can run concurrently; everything else has to queue
concurrency: container-linux-${{ github.event.number }}
env:
CONTAINER_IMAGE: ghcr.io/${{ github.repository_owner }}/linux-builder:latest
jobs:
container:
name: Build
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build container
run: |
podman build -t $CONTAINER_IMAGE builder/linux
- name: Push container
if: github.event_name != 'pull_request'
run: |
echo "${{ secrets.GITHUB_TOKEN }}" |
podman login ghcr.io -u $ --password-stdin
podman push $CONTAINER_IMAGE