unifios-utilities/.github/workflows/podman-udmp-udmse.yml

51 lines
1.4 KiB
YAML
Raw Normal View History

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