Skip to content

Commit

Permalink
chore(tests): Build docker image for upgrade tests (#11783)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshuebner authored Oct 20, 2023
1 parent 6a6af6d commit 74bd113
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/upgrade-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,47 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
GH_TOKEN: ${{ github.token }}

jobs:
upgrade-test:
name: Run migration tests
runs-on: ubuntu-22.04

steps:
- name: Install Docker
- name: Install Prerequisites
run: |
sudo apt-get -y update
sudo apt-get -y install ca-certificates curl gnupg lsb-release
sudo apt-get -y install ca-certificates curl gnupg lsb-release jq libyaml-dev net-tools
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
- name: Install prerequisites
run: |
sudo apt-get -y install jq
- name: Clone Kong source code
- name: Clone Source Code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Build Debian Package
run: |
make package/deb
mv bazel-bin/pkg/kong.amd64.deb .
- name: Build Docker Image
uses: docker/build-push-action@v3
with:
file: build/dockerfiles/deb.Dockerfile
context: .
push: false
tags: "kong-local/kong:latest"
build-args: |
KONG_BASE_IMAGE=ubuntu:22.04
KONG_ARTIFACT_PATH=./
- name: Run upgrade tests
- name: Run Upgrade Tests
run: |
bash ./scripts/upgrade-tests/test-upgrade-path.sh
bash ./scripts/upgrade-tests/test-upgrade-path.sh -i kong-local/kong:latest

1 comment on commit 74bd113

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:74bd1134f9640ebdeef3ea3b59cee6a1be5575a8
Artifacts available https://github.com/Kong/kong/actions/runs/6585180093

Please sign in to comment.