-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sh
21 lines (15 loc) · 957 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
set -e
sudo podman pull oraclelinux:8
sudo podman build --rm --no-cache -t pritunl-bastion .
export date=$(date "+%Y%m%d%H%M%S")
sudo podman tag pritunl-bastion:latest iad.ocir.io/pritunl8472/pritunl-bastion:"$date"
sudo podman tag pritunl-bastion:latest iad.ocir.io/pritunl8472/pritunl-bastion:latest
sudo podman push --authfile=/etc/containers/auth.json iad.ocir.io/pritunl8472/pritunl-bastion:"$date"
sudo podman push --authfile=/etc/containers/auth.json iad.ocir.io/pritunl8472/pritunl-bastion:latest
sudo podman build --rm --no-cache --format docker -t pritunl-bastion .
sudo podman tag pritunl-bastion:latest docker.io/pritunl/pritunl-bastion:"$date"
sudo podman tag pritunl-bastion:latest docker.io/pritunl/pritunl-bastion:latest
sudo podman push --authfile=/etc/containers/auth.json docker.io/pritunl/pritunl-bastion:"$date"
sudo podman push --authfile=/etc/containers/auth.json docker.io/pritunl/pritunl-bastion:latest
echo $date