Skip to content

Commit

Permalink
ci: update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
h-r-k-matsumoto committed Feb 3, 2024
1 parent 19e7025 commit 131a906
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 24 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
strategy:
matrix:
passenger-version:
- 6.0.12
- 6.0.13
- 6.0.14
- 6.0.18
- 6.0.19
- 6.0.20
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: engineerd/[email protected]
with:
version: v0.11.1
version: "v0.21.0"
- name: Kind Load Image
run: |
docker build -t passenger-go-exporter:test .
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/passenger-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Passenger-App
on:
push:
branches:
- "passenger-app"
- "passenger-app"
tags-ignore:
- "**"
- "**"

jobs:
build:
Expand All @@ -14,30 +14,30 @@ jobs:
strategy:
matrix:
passenger-version:
- 6.0.11
- 6.0.12
- 6.0.13
- 6.0.18
- 6.0.19
- 6.0.20
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set env
run: echo "TAG_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.USERNAME }}
password: ${{ secrets.CR_PAT }}

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ./test/passenger-app
push: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Implemented in golang, keeps memory consumption below 100MB, and runs on CPU 0.0
## Supported version

- golang: 1.20
- Passenger: 6.0.11, or later.
- Passenger: 6.0.18, or later.

All other versions have not been tested.

Expand Down
9 changes: 3 additions & 6 deletions test/passenger-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
FROM ruby:2.7
FROM ruby:3.3

ARG ARG_RAILS_VERSION=7.0.2.4
ARG ARG_PASSENGER_VERSION=6.0.13
ARG ARG_RAILS_VERSION=7.1.3
ARG ARG_PASSENGER_VERSION=6.0.20
ENV RAILS_VERSION $ARG_RAILS_VERSION
ENV PASSENGER_VERSION $ARG_PASSENGER_VERSION
#
RUN apt-get update \
&& apt-get install -y nodejs

WORKDIR /app
# Create rails new application.
Expand Down

0 comments on commit 131a906

Please sign in to comment.