Skip to content

Commit 25a8e4f

Browse files
committed
simple-proxy image
1 parent a113d8c commit 25a8e4f

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
linting:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1717
steps:
1818
- uses: actions/checkout@v4.1.7
1919
with:
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
options: "-l 125 --check --diff --verbose"
4949
test:
50-
runs-on: ubuntu-latest
50+
runs-on: ubuntu-24.04
5151
steps:
5252
- uses: actions/checkout@v4.1.7
5353
with:
@@ -102,7 +102,7 @@ jobs:
102102
echo "tags=ghcr.io/${{ github.repository }}:${{ github.sha }} ghcr.io/${{ github.repository }}:$BRANCH_NAME ghcr.io/${{ github.repository }}:latest" >> $GITHUB_OUTPUT
103103
fi
104104
105-
- name: Build image
105+
- name: Build bridger image
106106
id: build_image
107107
uses: redhat-actions/buildah-build@v2.13
108108
with:
@@ -113,13 +113,31 @@ jobs:
113113
build-args: |
114114
release=bridger@${{ steps.extract_branch.outputs.branch_name }}
115115
116+
- name: Build simple-proxy image
117+
id: build_simple_proxy
118+
uses: redhat-actions/buildah-build@v2.13
119+
with:
120+
image: ghcr.io/${{ github.repository_owner }}/simple-proxy
121+
platforms: linux/amd64,linux/arm64
122+
tags: |
123+
ghcr.io/${{ github.repository_owner }}/simple-proxy:${{ github.sha }}
124+
ghcr.io/${{ github.repository_owner }}/simple-proxy:latest
125+
containerfiles: ./config/docker/simple-proxy/Containerfile
126+
116127
- name: Push image
117128
uses: redhat-actions/push-to-registry@v2
118129
with:
119130
tags: ${{ steps.build_image.outputs.tags }}
120131
username: ${{ github.repository_owner }}
121132
password: ${{ secrets.GITHUB_TOKEN }}
122133

134+
- name: Push simple-proxy manifests
135+
uses: redhat-actions/push-to-registry@v2
136+
with:
137+
tags: ${{ steps.build_simple_proxy.outputs.tags }}
138+
username: ${{ github.repository_owner }}
139+
password: ${{ secrets.GITHUB_TOKEN }}
140+
123141
deploy:
124142
runs-on: self-hosted
125143
needs:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM python:3.9.21-alpine
2+
RUN apk add --no-cache py3-pip
3+
RUN python3 -m venv /app
4+
ENV PATH="/app/bin:$PATH"
5+
RUN pip install simple-proxy
6+
ENTRYPOINT [ "simple-proxy" ]

0 commit comments

Comments
 (0)