-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEVOPS-138
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,22 @@ env: | |
IMAGE_NAME: common/base | ||
|
||
jobs: | ||
actions-runner-base: | ||
runs-on: | ||
group: self-hosted | ||
steps: | ||
- name: Build push actions-runner-base and notify | ||
uses: IMIO/gha/[email protected] | ||
with: | ||
IMAGE_NAME: common/actions-runner-base | ||
IMAGE_TAGS: | | ||
${{ secrets.HARBOR_URL }}/common/actions-runner-base:latest | ||
REGISTRY_URL: ${{ secrets.HARBOR_URL }} | ||
REGISTRY_USERNAME: ${{ secrets.COMMON_HARBOR_USERNAME }} | ||
REGISTRY_PASSWORD: ${{ secrets.COMMON_HARBOR_PASSWORD }} | ||
MATTERMOST_WEBHOOK_URL: ${{ secrets.COMMON_MATTERMOST_WEBHOOK_URL }} | ||
CONTEXT: actions-runner/base | ||
DOCKERFILE: actions-runner/base/Dockerfile | ||
py2-ubuntu-20_04: | ||
runs-on: | ||
group: self-hosted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ghcr.io/actions/actions-runner:latest AS base | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
USER root | ||
|
||
RUN apt-get update -qqy \ | ||
&& apt-get full-upgrade -qqy \ | ||
&& apt-get install --no-install-recommends -qqy \ | ||
curl \ | ||
git \ | ||
jq \ | ||
python3-pip \ | ||
tzdata \ | ||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | ||
&& apt-get install -qqy nodejs \ | ||
&& npm install -g pnpm@latest-8 \ | ||
&& pip3 install requests && pip3 install bs4 \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& ln -sf /usr/share/zoneinfo/Europe/Brussels /etc/localtime \ | ||
&& echo "Europe/Brussels" > /etc/timezone \ | ||
&& dpkg-reconfigure tzdata \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
USER runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
services: | ||
sut: | ||
build: . | ||
command: > | ||
sh -c " | ||
if which curl git jq && date +%Z | grep -q 'CE'; then | ||
echo \"Tests passed!\" | ||
exit 0 | ||
else | ||
echo \"Tests failed!\" | ||
exit 1 | ||
fi | ||
" |