From ca848f392d39eff2f459ad3fe32d3d63cbb2747d Mon Sep 17 00:00:00 2001
From: Paul Richardson
Date: Fri, 28 Jun 2024 15:34:35 +0100
Subject: [PATCH] chore(actions): Update github actions to reflect new gateway
image
WIP
---
.github/workflows/image.yml | 10 +++++++---
.github/workflows/lint.yml | 1 +
.github/workflows/test.yml | 5 ++---
3 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml
index 909f0c1a..95dc111b 100644
--- a/.github/workflows/image.yml
+++ b/.github/workflows/image.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- main
+ - njs-migrate
paths-ignore:
- '**.md'
workflow_dispatch:
@@ -20,14 +21,17 @@ jobs:
uses: actions/checkout@v4
- name: Build image
run: |
- docker build -t quay.io/hawtio/online:latest .
+ make image
- name: Display image
run: |
docker images
+
+ # Only push from main repository
- name: Push image to Quay.io
+ if: github.repository == 'hawtio/hawtio-online'
env:
USERNAME: ${{ secrets.QUAY_USERNAME }}
PASSWORD: ${{ secrets.QUAY_PASSWORD }}
run: |
- docker login -u $USERNAME -p $PASSWORD quay.io
- docker push quay.io/hawtio/online:latest
+ docker login -u ${USERNAME} -p ${PASSWORD} quay.io
+ CUSTOM_VERSION=2.1.0.202406281530 make image-push
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index e356c38c..c6733d01 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -9,6 +9,7 @@ on:
push:
branches:
- main
+ - njs-migrate
paths-ignore:
- '**.md'
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index b485345a..2a152e36 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -9,6 +9,7 @@ on:
push:
branches:
- main
+ - njs-migrate
paths-ignore:
- '**.md'
@@ -30,9 +31,7 @@ jobs:
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" | sudo tee /etc/apt/preferences.d/99nginx
sudo apt-get update -y
- sudo apt-get install -y nginx=1.18.0-2~focal nginx-module-njs=1.18.0.0.4.4-2~focal
- - name: Show NJS versions for debugging
- run: sudo apt-cache showpkg nginx-module-njs
+ sudo apt-get install -y nginx=1.20.2-1~focal
- name: Set up Node
uses: actions/setup-node@v4