mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Refactor base build scripts
This commit is contained in:
9
.ci/build_amazonlinux_2.base.sh
Executable file
9
.ci/build_amazonlinux_2.base.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/amazonlinux:2 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="amazonlinux:2" \
|
||||
--progress plain \
|
||||
.
|
||||
9
.ci/build_centos_7.base.sh
Executable file
9
.ci/build_centos_7.base.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/centos:7 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="centos:7" \
|
||||
--progress plain \
|
||||
.
|
||||
9
.ci/build_centos_8.base.sh
Executable file
9
.ci/build_centos_8.base.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/centos:8 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="centos:8" \
|
||||
--progress plain \
|
||||
.
|
||||
9
.ci/build_debian_10.base.sh
Executable file
9
.ci/build_debian_10.base.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/debian:10 \
|
||||
-f pkg/Dockerfile.base.deb \
|
||||
--build-arg BASE_IMAGE="debian:10" \
|
||||
--progress plain \
|
||||
.
|
||||
9
.ci/build_fedora_33.base.sh
Executable file
9
.ci/build_fedora_33.base.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/fedora:33 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="fedora:33" \
|
||||
--progress plain \
|
||||
.
|
||||
9
.ci/build_fedora_34.base.sh
Executable file
9
.ci/build_fedora_34.base.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/fedora:34 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="fedora:34" \
|
||||
--progress plain \
|
||||
.
|
||||
9
.ci/build_fedora_35.base.sh
Executable file
9
.ci/build_fedora_35.base.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/fedora:35 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="fedora:35" \
|
||||
--progress plain \
|
||||
.
|
||||
9
.ci/build_ubuntu_18.04.base.sh
Executable file
9
.ci/build_ubuntu_18.04.base.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/ubuntu:18.04 \
|
||||
-f pkg/Dockerfile.base.deb \
|
||||
--build-arg BASE_IMAGE="ubuntu:18.04" \
|
||||
--progress plain \
|
||||
.
|
||||
9
.ci/build_ubuntu_20.04.base.sh
Executable file
9
.ci/build_ubuntu_20.04.base.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/ubuntu:20.04 \
|
||||
-f pkg/Dockerfile.base.deb \
|
||||
--build-arg BASE_IMAGE="ubuntu:20.04" \
|
||||
--progress plain \
|
||||
.
|
||||
@@ -22,6 +22,7 @@ RUN yum install -y \
|
||||
unzip \
|
||||
rpmdevtools \
|
||||
rpmlint
|
||||
ENV SHELL /bin/zsh
|
||||
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
|
||||
RUN git clone --depth 1 https://github.com/asdf-vm/asdf.git $HOME/.asdf
|
||||
ENV PATH="/root/.asdf/bin:/root/.asdf/shims:${PATH}"
|
||||
|
||||
@@ -1,82 +1,29 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/amazonlinux:2 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="amazonlinux:2" \
|
||||
--progress plain \
|
||||
.
|
||||
.ci/build_amazonlinux_2.base.sh
|
||||
docker push ghcr.io/firezone/amazonlinux:2
|
||||
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/centos:7 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="centos:7" \
|
||||
--progress plain \
|
||||
.
|
||||
.ci/build_centos_7.base.sh
|
||||
docker push ghcr.io/firezone/centos:7
|
||||
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/centos:8 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="centos:8" \
|
||||
--progress plain \
|
||||
.
|
||||
.ci/build_centos_8.base.sh
|
||||
docker push ghcr.io/firezone/centos:8
|
||||
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/fedora:33 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="fedora:33" \
|
||||
--progress plain \
|
||||
.
|
||||
.ci/build_fedora_33.base.sh
|
||||
docker push ghcr.io/firezone/fedora:33
|
||||
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/fedora:34 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="fedora:34" \
|
||||
--progress plain \
|
||||
.
|
||||
.ci/build_fedora_34.base.sh
|
||||
docker push ghcr.io/firezone/fedora:34
|
||||
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/fedora:35 \
|
||||
-f pkg/Dockerfile.base.rpm \
|
||||
--build-arg BASE_IMAGE="fedora:35" \
|
||||
--progress plain \
|
||||
.
|
||||
.ci/build_fedora_35.base.sh
|
||||
docker push ghcr.io/firezone/fedora:35
|
||||
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/debian:10 \
|
||||
-f pkg/Dockerfile.base.deb \
|
||||
--build-arg BASE_IMAGE="debian:10" \
|
||||
--progress plain \
|
||||
.
|
||||
.ci/build_debian_10.base.sh
|
||||
docker push ghcr.io/firezone/debian:10
|
||||
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/ubuntu:18.04 \
|
||||
-f pkg/Dockerfile.base.deb \
|
||||
--build-arg BASE_IMAGE="ubuntu:18.04" \
|
||||
--progress plain \
|
||||
.
|
||||
.ci/build_ubuntu_18.04.base.sh
|
||||
docker push ghcr.io/firezone/ubuntu:18.04
|
||||
|
||||
|
||||
docker build \
|
||||
-t ghcr.io/firezone/ubuntu:20.04 \
|
||||
-f pkg/Dockerfile.base.deb \
|
||||
--build-arg BASE_IMAGE="ubuntu:20.04" \
|
||||
--progress plain \
|
||||
.
|
||||
.ci/build_ubuntu_20.04.base.sh
|
||||
docker push ghcr.io/firezone/ubuntu:20.04
|
||||
|
||||
Reference in New Issue
Block a user