32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build-x86_64:
|
|
runs-on: x86_64
|
|
steps:
|
|
- name: checkout repo
|
|
uses: actions/checkout@v3
|
|
# - name: Install docker
|
|
# run: |
|
|
# apt-get update
|
|
# apt-get upgrade --yes
|
|
# apt-get install --yes ca-certificates curl gnupg
|
|
# install -m 0755 -d /etc/apt/keyrings
|
|
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
# chmod a+r /etc/apt/keyrings/docker.gpg
|
|
# echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
# apt-get update --yes
|
|
# apt-get install --yes docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
|
|
|
|
|
- name: build application
|
|
env:
|
|
CONTAINER_RUNTIME: podman
|
|
shell: bash
|
|
run: make container-image/build |