Skip to content

Commit

Permalink
adding image push workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Paige Rubendall <[email protected]>
  • Loading branch information
paigerube14 authored and chaitanyaenr committed Jan 17, 2024
1 parent cee4dc3 commit db46ddf
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Prow Scripts Docker Image CI
on:
workflow_dispatch:
inputs:
test_list:
description: Only run tests that match the regular expression
default: ""
required: false

push:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login in quay
run: docker login quay.io -u ${QUAY_USER} -p ${QUAY_TOKEN}
env:
QUAY_USER: ${{ secrets.QUAY_USERNAME }}
QUAY_TOKEN: ${{ secrets.QUAY_PASSWORD }}
- name: Check out code
uses: actions/checkout@main
- name: Build the Docker images
run: docker build --no-cache -t quay.io/redhat-chaos/prow-scripts .
- name: Push the Docker images
run: docker push quay.io/redhat-chaos/prow-scripts:latest

0 comments on commit db46ddf

Please sign in to comment.