2023-03-07 14:39:47 +00:00
|
|
|
name: UDM Podman
|
2021-08-26 14:34:51 +00:00
|
|
|
|
|
|
|
on:
|
2021-08-26 14:36:14 +00:00
|
|
|
workflow_dispatch:
|
2021-08-26 14:34:51 +00:00
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'podman-update/build/Dockerfile'
|
2023-03-23 09:58:01 +00:00
|
|
|
- 'podman-update/build/podman.Makefile.UDM-Base.patch'
|
2021-12-03 12:35:07 +00:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'podman-update/build/Dockerfile'
|
2023-03-23 09:58:01 +00:00
|
|
|
- 'podman-update/build/podman.Makefile.UDM-Base.patch'
|
2023-03-07 14:43:25 +00:00
|
|
|
|
2021-08-26 14:34:51 +00:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
2022-02-07 07:23:09 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-08-26 14:34:51 +00:00
|
|
|
|
|
|
|
steps:
|
2022-11-27 01:39:03 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-03-13 07:57:01 +00:00
|
|
|
- name: Docker Setup QEMU
|
2023-03-23 11:39:33 +00:00
|
|
|
uses: docker/setup-qemu-action@v2.1.0
|
|
|
|
with:
|
|
|
|
platforms: arm64
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2.5.0
|
2021-08-26 14:34:51 +00:00
|
|
|
- name: Build the Docker image
|
2023-03-23 11:39:33 +00:00
|
|
|
run: DOCKER_BUILDKIT=1 docker build --file podman-update/build/Dockerfile --build-arg UDM_PLATFORM=UDM-Base --tag boostchicken:udm-podman podman-update/build/
|
2021-08-27 05:18:41 +00:00
|
|
|
- name: Docker Extract
|
|
|
|
id: extract
|
2023-03-23 09:56:05 +00:00
|
|
|
uses: boostchicken-dev/actions-docker-extract@v3
|
2021-08-26 14:34:51 +00:00
|
|
|
with:
|
|
|
|
# Docker Image to extract files from
|
2023-03-07 14:43:25 +00:00
|
|
|
image: boostchicken:udm-podman
|
2021-08-26 14:34:51 +00:00
|
|
|
# Path (from root) to a file or directory within Image
|
2023-03-23 09:56:05 +00:00
|
|
|
path: /tmp/install/.
|
2023-03-07 14:43:25 +00:00
|
|
|
|
|
|
|
- name: Generate new tag version
|
|
|
|
id: version
|
2023-03-07 14:43:51 +00:00
|
|
|
uses: flynshue/version-action@v0.0.1
|
2023-03-07 14:43:25 +00:00
|
|
|
|
2021-08-26 14:34:51 +00:00
|
|
|
- name: Upload Podman Install
|
2023-03-23 09:56:05 +00:00
|
|
|
uses: actions/upload-artifact@v3.1.2
|
2021-08-26 14:34:51 +00:00
|
|
|
with:
|
|
|
|
path: ${{ steps.extract.outputs.destination }}
|
2023-03-23 09:31:24 +00:00
|
|
|
name: podman-udm-${{ steps.version.outputs.version }}
|
2023-03-23 09:56:05 +00:00
|
|
|
retention-days: 90
|