Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump runner #209

Merged
merged 4 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ name: 🐝 Manually deploy runners
on:
workflow_dispatch: # deploy on demand
inputs:
target_scale_set: # name our runner set
target_scale_set: # name our runner set
# In this repository, this corresponds to the helm chart name in `/deployments/helm-***.yml`.
# e.g., `ubi8` would target `/deployments/helm-ubi8.yml`
description: "Which scale set to deploy?"
type: string
required: true
environment_name: # this corresponds to the environments we set up for our `kubeconfig` files
environment_name: # this corresponds to the environments we set up for our `kubeconfig` files
description: "Which environment to deploy to?"
type: choice # drop-down menus are fantastic!
type: choice # drop-down menus are fantastic!
required: true
options: # change these to your own names or change :point_up: to a `string` for freeform entry.
- "bare-metal"
- "test"
- "production"
options: # change these to your own names or change :point_up: to a `string` for freeform entry.
- "bare-metal"
- "test"
- "production"
default: "test"
runner_namespace:
description: "Which namespace to deploy to?"
type: choice
required: true
options: # again, change this to your own namespaces
- "runners"
- "test-runners"
options: # again, change this to your own namespaces
- "runners"
- "test-runners"
default: "test-runners"

jobs:
Expand All @@ -37,6 +37,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Write out the kubeconfig info
run: |
echo ${{ secrets.DEPLOY_ACCOUNT }} | base64 -d > /tmp/config
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/test-jammy-dind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ on:
jobs:
build:
name: Build test image
runs-on: ubuntu-latest # use the GitHub-hosted runner to build the imag
runs-on: ubuntu-latest # use the GitHub-hosted runner to build the imag

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to Docker Hub
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
Expand All @@ -36,14 +36,21 @@ jobs:

deploy:
name: Deploy test image to `test-runners` namespace
runs-on: ubuntu-latest # use the GitHub-hosted runner to deploy the image
runs-on: ubuntu-latest # use the GitHub-hosted runner to deploy the image
needs: [build]
environment: test

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Write out the kubeconfig info
run: |
echo ${{ secrets.DEPLOY_ACCOUNT }} | base64 -d > /tmp/config
Expand Down Expand Up @@ -81,16 +88,16 @@ jobs:

- name: Sudo fails
uses: ./tests/sudo-fails

- name: Docker tests
uses: ./tests/docker

- name: Container Action test
uses: ./tests/container

remove-deploy:
name: Delete test image deployment
runs-on: ubuntu-latest # use the GitHub-hosted runner to remove the image
runs-on: ubuntu-latest # use the GitHub-hosted runner to remove the image
needs: [test]
environment: test
if: always()
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/test-ubi8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
build:
name: Build test image
runs-on: ubuntu-latest # use the GitHub-hosted runner to build the image
runs-on: ubuntu-latest # use the GitHub-hosted runner to build the image

steps:
- name: Checkout
Expand All @@ -39,14 +39,21 @@ jobs:

deploy:
name: Deploy test image to `test-runners` namespace
runs-on: ubuntu-latest # use the GitHub-hosted runner to deploy the image
runs-on: ubuntu-latest # use the GitHub-hosted runner to deploy the image
needs: [build]
environment: test

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Write out the kubeconfig info
run: |
echo ${{ secrets.DEPLOY_ACCOUNT }} | base64 -d > /tmp/config
Expand Down Expand Up @@ -87,7 +94,7 @@ jobs:

remove-deploy:
name: Delete test image deployment
runs-on: ubuntu-latest # use the GitHub-hosted runner to remove the image
runs-on: ubuntu-latest # use the GitHub-hosted runner to remove the image
needs: [test]
environment: test
if: always()
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/test-ubi9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
build:
name: Build test image
runs-on: ubuntu-latest # use the GitHub-hosted runner to build the image
runs-on: ubuntu-latest # use the GitHub-hosted runner to build the image

steps:
- name: Checkout
Expand All @@ -39,14 +39,21 @@ jobs:

deploy:
name: Deploy test image to `test-runners` namespace
runs-on: ubuntu-latest # use the GitHub-hosted runner to deploy the image
runs-on: ubuntu-latest # use the GitHub-hosted runner to deploy the image
needs: [build]
environment: test

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Write out the kubeconfig info
run: |
echo ${{ secrets.DEPLOY_ACCOUNT }} | base64 -d > /tmp/config
Expand Down Expand Up @@ -87,7 +94,7 @@ jobs:

remove-deploy:
name: Delete test image deployment
runs-on: ubuntu-latest # use the GitHub-hosted runner to remove the image
runs-on: ubuntu-latest # use the GitHub-hosted runner to remove the image
needs: [test]
environment: test
if: always()
Expand Down
2 changes: 1 addition & 1 deletion images/ghes-demo.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:22.04

# GitHub runner arguments
ARG RUNNER_ARCH=linux/amd64
ARG RUNNER_VERSION=2.309.0
ARG RUNNER_VERSION=2.310.2
ARG RUNNER_CONTAINER_HOOKS_VERSION=0.4.0

# CodeQL arguments
Expand Down
2 changes: 1 addition & 1 deletion images/rootless-ubuntu-jammy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:22.04

# GitHub runner arguments
ARG RUNNER_ARCH=linux/amd64
ARG RUNNER_VERSION=2.309.0
ARG RUNNER_VERSION=2.310.2
ARG RUNNER_CONTAINER_HOOKS_VERSION=0.4.0

# Docker and Compose arguments
Expand Down
2 changes: 1 addition & 1 deletion images/ubi8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LABEL org.opencontainers.image.documentation https://github.com/some-natalie/kub

# Arguments
ARG TARGETPLATFORM=linux/amd64
ARG RUNNER_VERSION=2.309.0
ARG RUNNER_VERSION=2.310.2
ARG RUNNER_CONTAINER_HOOKS_VERSION=0.4.0

# Shell setup
Expand Down
2 changes: 1 addition & 1 deletion images/ubi9.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LABEL org.opencontainers.image.documentation https://github.com/some-natalie/kub

# Arguments
ARG TARGETPLATFORM=linux/amd64
ARG RUNNER_VERSION=2.309.0
ARG RUNNER_VERSION=2.310.2
ARG RUNNER_CONTAINER_HOOKS_VERSION=0.4.0

# Shell setup
Expand Down
Loading