Skip to content

🧨 Feature/latest plugins nov23 🧨 #12

🧨 Feature/latest plugins nov23 🧨

🧨 Feature/latest plugins nov23 🧨 #12

name: jenkins-image-pr
on:
pull_request:
paths:
- configuration/**
- helpers/**
- plugins.txt
- VERSION
jobs:
build:
runs-on: ubuntu-20.04
env:
image_name: enablement-jenkins
steps:
- uses: actions/checkout@v1
- name: Get image tags
id: image_tags
run: |
echo -n ::set-output name=IMAGE_TAGS::
# exposes variable VERSION
source VERSION
echo ${VERSION}
- name: Download s2i binary
run: |
curl -sL https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz | tar -xzf -
- name: Generate Dockerfile
run: |
./s2i build --as-dockerfile Dockerfile . quay.io/openshift/origin-jenkins:latest ${{ env.image_name }}:${{ steps.image_tags.outputs.IMAGE_TAGS }} --loglevel 1
- name: Build image
id: build_image
uses: redhat-actions/[email protected]
with:
image: ${{ env.image_name }}
oci: true
tags: ${{ steps.image_tags.outputs.IMAGE_TAGS }}
dockerfiles: |
./Dockerfile