Skip to content

Commit 68c4170

Browse files
committed
Add Github workflows for httpd-tools container image; update CentOS SHA1
With that image, we don't need to create container image each time when crc-cloud is deployed. Also update CentOS 9 stream digest, because previous one expired. Signed-off-by: Daniel Pawlik <[email protected]>
1 parent f6ed2f2 commit 68c4170

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Build and push container image
3+
4+
on:
5+
push:
6+
branches: ['main']
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Log in to GitHub Container Registry
20+
uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Build and push Docker image
27+
uses: docker/build-push-action@v5
28+
with:
29+
context: .
30+
file: ./oci/Containerfile-httpd-tools
31+
push: ${{ github.event_name != 'pull_request' }}
32+
tags: |
33+
ghcr.io/${{ github.repository }}/httpd-tools:latest
34+
ghcr.io/${{ github.repository }}/httpd-tools:${{ github.sha }}

oci/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN make build \
1212
&& curl -LO ${PULUMI_URL} \
1313
&& tar -xzvf pulumi-${PULUMI_VERSION}-linux-x64.tar.gz
1414

15-
FROM quay.io/centos/centos:stream9@sha256:5bd57c6d9d1da7c41f772b1663ca342a66fd2131ff0895bc929d828b8aa16a30
15+
FROM quay.io/centos/centos:stream9@sha256:0299bfb0830ad5ca40ae7406ea51666c7e74d1a007b5511907b9f950a121040f
1616

1717
LABEL MAINTAINER "CRC <[email protected]>"
1818

oci/Containerfile-httpd-tools

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM quay.io/centos/centos:stream9-minimal@sha256:3f9a84c10a4a3fb9fac56ba11c3119759e78abe596e270a1c4e0203547ee80d9
2+
RUN microdnf --setopt=tsflags=nodocs --setopt=install_weak_deps=0 install -y httpd-tools
3+
ENTRYPOINT ["htpasswd", "-Bbn"]

0 commit comments

Comments
 (0)