-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.4 KB
/
Copy pathbuild-and-push.yml
File metadata and controls
42 lines (35 loc) · 1.4 KB
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
# This is a basic workflow to help you get started with Actions
name: Build and Push to Quay
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Source to Image Build
uses: redhat-actions/s2i-build@v2
id: build_image
with:
builder_image: registry.access.redhat.com/ubi8/nodejs-12
image: openshift-s2i-typescript-example
# The tags of the image to build, separated by a space
tags: latest ${{ github.sha }}
# List of environment variable key-value pairs to pass to the s2i builder context
env_vars: HUSKY_SKIP_INSTALL=1
- name: Push To Quay Action
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build_image.outputs.image }}
tags: ${{ steps.build_image.outputs.tags }}
registry: quay.io/evanshortiss
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}