Skip to content

Commit

Permalink
chore(actions): Update github actions to reflect new gateway image
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
phantomjinx committed Jun 28, 2024
1 parent 4b2f4ad commit a204615
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- njs-migrate
paths-ignore:
- '**.md'
workflow_dispatch:
Expand All @@ -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
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
branches:
- main
- njs-migrate
paths-ignore:
- '**.md'

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
branches:
- main
- njs-migrate
paths-ignore:
- '**.md'

Expand All @@ -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
Expand Down

0 comments on commit a204615

Please sign in to comment.