Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit c1d2718

Browse files
authored
Merge pull request #48 from fullstack-devops/feature/dump-ghcr-pkg
feat: dump ghcr and move to quai.io
2 parents 0cf64bb + 47decb7 commit c1d2718

File tree

13 files changed

+63
-67
lines changed

13 files changed

+63
-67
lines changed

.github/workflows/build-pr.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,37 +18,37 @@ jobs:
1818
matrix: ${{ steps.set-matrix.outputs.matrix }}
1919
steps:
2020
- name: Check out the repo
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222
- id: set-matrix
2323
working-directory: images
2424
run: |
2525
flavours=$(ls -I "base"| xargs echo | sed 's/ /,/g')
2626
echo "Building flavours: $flavours"
2727
flavours="{\"flavour\":[\"`echo "$flavours" | sed 's/,/","/g'`\"]}"
28-
echo "::set-output name=matrix::$flavours"
28+
echo "matrix=$flavours" >> $GITHUB_OUTPUT
2929
3030
build_base:
3131
runs-on: ubuntu-latest
3232
needs: generate_infos
3333
steps:
3434
- name: Check out the repo
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3636

3737
- name: Login to GitHub Container Registry
38-
uses: docker/login-action@v1
38+
uses: docker/login-action@v2
3939
with:
4040
registry: ghcr.io
4141
username: ${{ github.repository_owner }}
4242
password: ${{ secrets.GITHUB_TOKEN }}
4343

4444
- name: Set up QEMU
45-
uses: docker/setup-qemu-action@v1
45+
uses: docker/setup-qemu-action@v2
4646
- name: Set up Docker Buildx
4747
id: buildx
48-
uses: docker/setup-buildx-action@v1
48+
uses: docker/setup-buildx-action@v2
4949

5050
- name: Build github-actions-runner:base
51-
uses: docker/build-push-action@v2
51+
uses: docker/build-push-action@v3
5252
with:
5353
context: ./images/base
5454
push: true
@@ -62,28 +62,28 @@ jobs:
6262
matrix: ${{ fromJson(needs.load_matrix.outputs.matrix) }}
6363
steps:
6464
- name: Check out the repo
65-
uses: actions/checkout@v2
65+
uses: actions/checkout@v3
6666

6767
- name: Login to GitHub Container Registry
68-
uses: docker/login-action@v1
68+
uses: docker/login-action@v2
6969
with:
7070
registry: ghcr.io
7171
username: ${{ github.repository_owner }}
7272
password: ${{ secrets.GITHUB_TOKEN }}
7373

7474
- name: Set up QEMU
75-
uses: docker/setup-qemu-action@v1
75+
uses: docker/setup-qemu-action@v2
7676
- name: Set up Docker Buildx
7777
id: buildx
78-
uses: docker/setup-buildx-action@v1
78+
uses: docker/setup-buildx-action@v2
7979

8080
- name: link child image to current pr
8181
run: |
8282
sed -i --expression "s@FROM ${{ env.IMAGE_BASE }}.*@FROM ${{ env.IMAGE_BASE }}:base-pr-${{ github.event.pull_request.number }}@g" \
8383
images/${{ matrix.flavour }}/Dockerfile
8484
8585
- name: Build github-actions-runner:${{ matrix.flavour }}
86-
uses: docker/build-push-action@v2
86+
uses: docker/build-push-action@v3
8787
with:
8888
context: ./images/${{ matrix.flavour }}
8989
push: true

.github/workflows/cleanup-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
matrix: ${{ steps.set-matrix.outputs.matrix }}
1212
steps:
1313
- name: Check out the repo
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
- id: set-matrix
1616
working-directory: images
1717
run: |
1818
flavours=$(ls -I "base"| xargs echo | sed 's/ /,/g')
1919
echo "Building flavours: $flavours"
2020
flavours="{\"flavour\":[\"`echo "$flavours" | sed 's/,/","/g'`\"]}"
21-
echo "::set-output name=matrix::$flavours"
21+
echo "matrix=$flavours" >> $GITHUB_OUTPUT
2222
2323
purge_images:
2424
runs-on: ubuntu-latest
@@ -27,7 +27,7 @@ jobs:
2727
matrix: ${{ fromJson(needs.load_matrix.outputs.matrix) }}
2828
steps:
2929
- name: Delete github-actions-runner:${{ matrix.flavour }}
30-
uses: bots-house/[email protected].0
30+
uses: bots-house/[email protected].1
3131
with:
3232
owner: ${{ github.repository_owner }}
3333
name: github-actions-runner

.github/workflows/create-release.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,42 +24,42 @@ jobs:
2424
matrix: ${{ steps.set-matrix.outputs.matrix }}
2525
steps:
2626
- name: Check out the repo
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v3
2828
- id: set-matrix
2929
working-directory: images
3030
run: |
3131
flavours=$(ls -I "base"| xargs echo | sed 's/ /,/g')
3232
echo "Building flavours: $flavours"
3333
flavours="{\"flavour\":[\"`echo "$flavours" | sed 's/,/","/g'`\"]}"
34-
echo "::set-output name=matrix::$flavours"
34+
echo "matrix=$flavours" >> $GITHUB_OUTPUT
3535
3636
build_base:
3737
runs-on: ubuntu-latest
3838
needs: create_release
3939
steps:
4040
- name: Check out the repo
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v3
4242

4343
- name: Login to GitHub Container Registry
44-
uses: docker/login-action@v1
44+
uses: docker/login-action@v2
4545
with:
4646
registry: ghcr.io
4747
username: ${{ github.repository_owner }}
4848
password: ${{ secrets.GITHUB_TOKEN }}
4949
- name: Login to Red Hat Quay
50-
uses: docker/login-action@v1
50+
uses: docker/login-action@v2
5151
with:
5252
registry: quay.io
5353
username: ${{ secrets.RH_QUAY_USERNAME }}
5454
password: ${{ secrets.RH_QUAY_PASSWORD }}
5555

5656
- name: Set up QEMU
57-
uses: docker/setup-qemu-action@v1
57+
uses: docker/setup-qemu-action@v2
5858
- name: Set up Docker Buildx
59-
uses: docker/setup-buildx-action@v1
59+
uses: docker/setup-buildx-action@v2
6060

6161
- name: Build github-actions-runner:base
62-
uses: docker/build-push-action@v2
62+
uses: docker/build-push-action@v3
6363
with:
6464
context: ./images/base
6565
push: true
@@ -78,39 +78,31 @@ jobs:
7878
matrix: ${{ fromJson(needs.load_matrix.outputs.matrix) }}
7979
steps:
8080
- name: Check out the repo
81-
uses: actions/checkout@v2
81+
uses: actions/checkout@v3
8282

83-
- name: Login to GitHub Container Registry
84-
uses: docker/login-action@v1
85-
with:
86-
registry: ghcr.io
87-
username: ${{ github.repository_owner }}
88-
password: ${{ secrets.GITHUB_TOKEN }}
8983
- name: Login to Red Hat Quay
90-
uses: docker/login-action@v1
84+
uses: docker/login-action@v2
9185
with:
9286
registry: quay.io
9387
username: ${{ secrets.RH_QUAY_USERNAME }}
9488
password: ${{ secrets.RH_QUAY_PASSWORD }}
9589

9690
- name: Set up QEMU
97-
uses: docker/setup-qemu-action@v1
91+
uses: docker/setup-qemu-action@v2
9892
- name: Set up Docker Buildx
99-
uses: docker/setup-buildx-action@v1
93+
uses: docker/setup-buildx-action@v2
10094

10195
- name: link child image to current version
10296
run: |
10397
sed -i --expression "s@FROM ghcr.io/${{ env.IMAGE_NAME }}.*@FROM ghcr.io/${{ env.IMAGE_NAME }}:${{needs.create_release.outputs.version}}-base@g" \
10498
images/${{ matrix.flavour }}/Dockerfile
10599
106100
- name: Build github-actions-runner:${{ matrix.flavour }}
107-
uses: docker/build-push-action@v2
101+
uses: docker/build-push-action@v3
108102
with:
109103
context: ./images/${{ matrix.flavour }}
110104
push: true
111105
tags: |
112-
ghcr.io/${{ env.IMAGE_NAME }}:latest-${{ matrix.flavour }}
113-
ghcr.io/${{ env.IMAGE_NAME }}:${{needs.create_release.outputs.version}}-${{ matrix.flavour }}
114106
quay.io/${{ env.IMAGE_NAME }}:latest-${{ matrix.flavour }}
115107
quay.io/${{ env.IMAGE_NAME }}:${{needs.create_release.outputs.version}}-${{ matrix.flavour }}
116108
@@ -119,7 +111,7 @@ jobs:
119111
needs: [create_release, build_base, build_flavours]
120112
steps:
121113
- name: Checkout code
122-
uses: actions/checkout@v2
114+
uses: actions/checkout@v3
123115
- name: Setup awesome-ci
124116
uses: fullstack-devops/awesome-ci-action@main
125117

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Software builds can be built there using a [Nexus Repository](https://de.sonatyp
1111

1212
Support: If you need help or a feature just open an issue!
1313

14-
Package / Images: `ghcr.io/fullstack-devops/github-actions-runner`
14+
Package / Images: `quay.io/fullstack-devops/github-actions-runner`
1515

1616
Available Tags:
1717

@@ -60,13 +60,13 @@ If you are using `docker` or `podman` the options and commands are basically the
6060
Run registerd to an Organisation:
6161

6262
```bash
63-
docker run -e GH_ORG=fullstack-devops -e GH_ACCESS_TOKEN=ghp_**** ghcr.io/fullstack-devops/github-actions-runner:latest-base
63+
docker run -e GH_ORG=fullstack-devops -e GH_ACCESS_TOKEN=ghp_**** quay.io/fullstack-devops/github-actions-runner:latest-base
6464
```
6565

6666
Run registerd to an Organisation and Repo:
6767

6868
```bash
69-
docker run -e GH_ORG=fullstack-devops -e GH_REPO=github-runner-testing -e GH_ACCESS_TOKEN=ghp_**** ghcr.io/fullstack-devops/github-actions-runner:latest-base
69+
docker run -e GH_ORG=fullstack-devops -e GH_REPO=github-runner-testing -e GH_ACCESS_TOKEN=ghp_**** quay.io/fullstack-devops/github-actions-runner:latest-base
7070
```
7171

7272
> Replace the `ghp_****` with your own valid personal access token
@@ -114,15 +114,15 @@ spec:
114114
emptyDir: {}
115115
containers:
116116
- name: kaniko
117-
image: ghcr.io/fullstack-devops/github-actions-runner:latest-kaniko-sidecar
117+
image: quay.io/fullstack-devops/github-actions-runner:latest-kaniko-sidecar
118118
resources: {}
119119
volumeMounts:
120120
- name: workspace-volume
121121
mountPath: /kaniko/workspace/
122122
imagePullPolicy: IfNotPresent
123123
tty: true
124124
- name: github-actions-runner
125-
image: ghcr.io/fullstack-devops/github-actions-runner:latest-base
125+
image: quay.io/fullstack-devops/github-actions-runner:latest-base
126126
resources: {}
127127
env:
128128
- name: GH_ORG

examples/docker-compose/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ volumes:
66

77
services:
88
github-action-runner:
9-
image: ghcr.io/fullstack-devops/github-actions-runner:base-latest
9+
image: quay.io/fullstack-devops/github-actions-runner:base-latest
1010
environment:
1111
GH_ORG: fullstack-devops
1212
KANIKO_ENABLED: "true"
@@ -15,6 +15,6 @@ services:
1515
- kaniko_workspace:/kaniko/workspace
1616

1717
github-action-runner-kaniko:
18-
image: ghcr.io/fullstack-devops/github-actions-runner:kaniko-sidecar-latest
18+
image: quay.io/fullstack-devops/github-actions-runner:kaniko-sidecar-latest
1919
volumes:
2020
- kaniko_workspace:/kaniko/workspace

examples/podman/deployment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ spec:
1111
type: Directory
1212
containers:
1313
- name: kaniko
14-
image: ghcr.io/fullstack-devops/github-actions-runner:kaniko-sidecar-latest
14+
image: quay.io/fullstack-devops/github-actions-runner:kaniko-sidecar-latest
1515
resources: {}
1616
volumeMounts:
1717
- name: workspace-volume
1818
mountPath: /kaniko/workspace/
1919
imagePullPolicy: IfNotPresent
2020
tty: true
2121
- name: github-actions-runner
22-
image: ghcr.io/fullstack-devops/github-actions-runner:base-latest
22+
image: quay.io/fullstack-devops/github-actions-runner:base-latest
2323
resources: {}
2424
env:
2525
- name: GH_ORG

images/ansible-k8s/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ RUN pip3 install ${PACKAGES_PYTHON} --user
5656
RUN ansible-galaxy collection install -c -r ${TMP_DIR}/requirements.yml
5757

5858
# install helm plugins helm push, appr && diff
59-
RUN helm plugin install --version 0.10.2 https://github.com/chartmuseum/helm-push.git \
59+
RUN helm plugin install --version 0.10.3 https://github.com/chartmuseum/helm-push.git \
6060
&& helm plugin install --version 0.7.0 https://github.com/app-registry/appr-helm-plugin.git \
61-
&& helm plugin install --version 3.4.2 https://github.com/databus23/helm-diff
61+
&& helm plugin install --version 3.6.0 https://github.com/databus23/helm-diff

images/base/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,24 @@ RUN mkdir /helper-scripts \
2626
&& mkdir -p /kaniko/workspace
2727

2828
# Copy image helper scripts
29-
ADD ./helper-scripts/detect-setup.sh /helper-scripts/detect-setup.sh
30-
ADD ./helper-scripts/gh-entrypoint.sh /helper-scripts/gh-entrypoint.sh
31-
ADD ./helper-scripts/kaniko-wrapper.sh /helper-scripts/kaniko-wrapper.sh
32-
ADD ./helper-scripts/translate-aarch.sh /helper-scripts/translate-aarch.sh
29+
ADD ./helper-scripts/ /helper-scripts/
3330

3431
RUN chmod -R 755 /helper-scripts
3532

3633
# install packages along with jq so we can parse JSON
3734
# add additional packages as necessary
3835
RUN apt-get update \
36+
&& curl -sL https://deb.nodesource.com/setup_lts.x | bash - \
3937
&& apt-get install -y ${PACKAGES} \
4038
&& rm -rf /var/lib/apt/lists/* \
4139
&& apt-get clean
4240

41+
# install nodejs
42+
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - \
43+
&& apt-get install -y nodejs \
44+
&& rm -rf /var/lib/apt/lists/* \
45+
&& apt-get clean
46+
4347
# install awesoeme ci
4448
RUN export ARCH=$(/helper-scripts/translate-aarch.sh a-short) \
4549
&& curl -L -O https://github.com/fullstack-devops/awesome-ci/releases/download/${AWESOME_CI_VERSION}/awesome-ci_${AWESOME_CI_VERSION}_linux-${ARCH} \

images/golang/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ghcr.io/fullstack-devops/github-actions-runner:latest-base
33
USER root
44
# install packages along with jq so we can parse JSON
55
# add additional packages as necessary
6-
ARG PACKAGES="nodejs ansible"
6+
ARG PACKAGES="ansible"
77
ARG PACKAGES_PYTHON="kubernetes"
88

99
## ansible keys
@@ -54,6 +54,6 @@ RUN pip3 install $PACKAGES_PYTHON --user
5454
RUN ansible-galaxy collection install -c -r ${TMP_DIR}/requirements.yml
5555

5656
# install helm plugins helm push, appr && diff
57-
RUN helm plugin install --version 0.10.2 https://github.com/chartmuseum/helm-push.git \
57+
RUN helm plugin install --version 0.10.3 https://github.com/chartmuseum/helm-push.git \
5858
&& helm plugin install --version 0.7.0 https://github.com/app-registry/appr-helm-plugin.git \
59-
&& helm plugin install --version 3.4.2 https://github.com/databus23/helm-diff
59+
&& helm plugin install --version 3.6.0 https://github.com/databus23/helm-diff

images/maven-adopt-8-ng/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ghcr.io/fullstack-devops/github-actions-runner:latest-base
33
USER root
44
# install packages along with jq so we can parse JSON
55
# add additional packages as necessary
6-
ARG PACKAGES="adoptopenjdk-8-hotspot xmlstarlet maven nodejs ansible"
6+
ARG PACKAGES="adoptopenjdk-8-hotspot xmlstarlet maven ansible"
77
ARG PACKAGES_PYTHON="kubernetes"
88

99
## ansible keys
@@ -56,6 +56,6 @@ RUN pip3 install $PACKAGES_PYTHON --user
5656
RUN ansible-galaxy collection install -c -r ${TMP_DIR}/requirements.yml
5757

5858
# install helm plugins helm push, appr && diff
59-
RUN helm plugin install --version 0.10.2 https://github.com/chartmuseum/helm-push.git \
59+
RUN helm plugin install --version 0.10.3 https://github.com/chartmuseum/helm-push.git \
6060
&& helm plugin install --version 0.7.0 https://github.com/app-registry/appr-helm-plugin.git \
61-
&& helm plugin install --version 3.4.2 https://github.com/databus23/helm-diff
61+
&& helm plugin install --version 3.6.0 https://github.com/databus23/helm-diff

0 commit comments

Comments
 (0)