Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wmuldergov authored Jan 2, 2025
1 parent 9db2d14 commit c0f1904
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build & Deploy Image to OpenShift

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
name: Build & Push Image

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Build Image
id: build_image
uses: redhat-actions/buildah-build@v2
with:
context: .
layers: true
image: h-drive-email
tags: latest
labels: |
app=h-drive-email
containerfiles: ./Dockerfile

- name: Install CLI tools from OpenShift Mirror
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4"

# - name: Push to OpenShift ImageStream
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.build_image.outputs.image }}
# tags: latest
# registry: ${{ vars.OPENSHIFT_IMAGESTREAM_URL }}
# username: ${{ secrets.OPENSHIFT_IMAGESTREAM_USERNAME }}
# password: ${{ secrets.OPENSHIFT_IMAGESTREAM_TOKEN }}

0 comments on commit c0f1904

Please sign in to comment.