Skip to content

Commit 80c1a51

Browse files
committed
test prod
1 parent 056dcb9 commit 80c1a51

File tree

3 files changed

+60
-3
lines changed

3 files changed

+60
-3
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: CI/CD
2+
13
on:
24
push:
35
branches:
@@ -7,6 +9,11 @@ permissions:
79
contents: write
810
pages: write
911
id-token: write
12+
packages: write
13+
14+
env:
15+
REGISTRY: ghcr.io
16+
IMAGE_NAME: ${{ github.repository }}
1017

1118
jobs:
1219
build:
@@ -38,13 +45,14 @@ jobs:
3845
sudo apt-get update
3946
sudo apt-get install -y equivs
4047
equivs-build debian/control
48+
cp closure*.deb closure.deb
4149
echo -e "built=$?\ntag=$(grep -oP '(?<=^Version: ).*' debian/control)\nmessage=$(git log -1 --pretty=%B)\n" >> "$GITHUB_OUTPUT"
4250
4351
- name: Create release
4452
if: ${{ steps.build.outputs.built == '0' }}
4553
uses: ncipollo/release-action@v1
4654
with:
47-
artifacts: "*.deb"
55+
artifacts: "closure.deb"
4856
body: ${{ steps.build.outputs.message }}
4957
tag: "v${{ steps.build.outputs.tag }}"
5058
commit: "master"
@@ -81,3 +89,36 @@ jobs:
8189
- name: Deploy repo
8290
id: deployment
8391
uses: actions/deploy-pages@v4
92+
93+
test:
94+
runs-on: ubuntu-latest
95+
needs: deploy
96+
97+
permissions:
98+
contents: read
99+
packages: write
100+
101+
steps:
102+
- name: Checkout repository
103+
uses: actions/checkout@v4
104+
105+
- name: Log in to the Container registry
106+
uses: docker/login-action@v3.1.0
107+
with:
108+
registry: ${{ env.REGISTRY }}
109+
username: ${{ github.actor }}
110+
password: ${{ secrets.GITHUB_TOKEN }}
111+
112+
- name: Extract metadata (tags, labels) for Docker
113+
id: meta
114+
uses: docker/metadata-action@v5.5.1
115+
with:
116+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
117+
118+
- name: Build and push Docker image
119+
uses: docker/build-push-action@v5.3.0
120+
with:
121+
context: .
122+
push: true
123+
tags: ${{ steps.meta.outputs.tags }}
124+
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ubuntu:latest
2+
RUN apt-get update &&\
3+
apt-get install -yqq wget &&\
4+
mkdir -m 0755 -p /etc/apt/keyrings/ &&\
5+
wget -qO- https://ipitio.github.io/closure/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/closure.gpg > /dev/null &&\
6+
chmod 644 /etc/apt/keyrings/closure.gpg &&\
7+
echo "deb https://ipitio.github.io/closure master main" | sudo tee /etc/apt/sources.list.d/closure.list &&\
8+
chmod 644 /etc/apt/sources.list.d/closure.list &&\
9+
apt-get update &&\
10+
apt-get install -yqq closure &&\
11+
bash /opt/closure/init.sh
12+
WORKDIR /opt/closure

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44

55
<strong>Complex? Simplicial.</strong>
66

7+
---
8+
9+
[![build](https://github.com/ipitio/closure/actions/workflows/release.yml/badge.svg)](https://github.com/ipitio/closure/pkgs/container/closure)
10+
711
</div>
812

9-
---
13+
1014

1115
Provision a fresh Ubuntu install as a Hub, Spoke, or hybrid of both!
1216

@@ -65,7 +69,7 @@ sudo apt-get install -yqq wget
6569
sudo mkdir -m 0755 -p /etc/apt/keyrings/
6670
wget -qO- https://ipitio.github.io/closure/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/closure.gpg > /dev/null
6771
sudo chmod 644 /etc/apt/keyrings/closure.gpg
68-
echo "deb [signed-by=/etc/apt/keyrings/closure.gpg] https://ipitio.github.io/closure master main" | sudo tee /etc/apt/sources.list.d/closure.list
72+
echo "deb https://ipitio.github.io/closure master main" | sudo tee /etc/apt/sources.list.d/closure.list
6973
sudo chmod 644 /etc/apt/sources.list.d/closure.list
7074
sudo apt-get update
7175
sudo apt-get install -yqq closure

0 commit comments

Comments
 (0)