-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.17 KB
/
passenger-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Passenger-App
on:
push:
branches:
- "passenger-app"
tags-ignore:
- "**"
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
passenger-version:
- 6.0.23
steps:
- name: checkout
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@v3
- name: Login to GitHub Container Registry
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@v5
with:
context: ./test/passenger-app
push: true
build-args: |
ARG_PASSENGER_VERSION=${{ matrix.passenger-version }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.url=${{ github.event.repository.html_url }}
tags: |
ghcr.io/${{ github.repository }}/passenger-app:${{ matrix.passenger-version }}