-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.32 KB
/
build-containers.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
name: build containers
run-name: building containers
on:
schedule:
- cron: "0 0 * * 1"
push:
branches:
- "main"
pull_request: {}
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run podman build - Debian
run: podman build -t ghcr.io/spotsnel/tailscale-systemd:latest -f containers/Containerfile-debian .
- name: Run podman build - Fedora
run: podman build -t ghcr.io/spotsnel/tailscale-systemd/fedora:latest -f containers/Containerfile-fedora .
- name: Run podman build - UBI9
run: podman build -t ghcr.io/spotsnel/tailscale-systemd/ubi9:latest -f containers/Containerfile-ubi9 .
- name: Push image to ghcr.io - Debian
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/spotsnel/tailscale-systemd:latest
- name: Push image to ghcr.io - Fedora
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/spotsnel/tailscale-systemd/fedora:latest
- name: Push image to ghcr.io - UBI9
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/spotsnel/tailscale-systemd/ubi9:latest