From db46ddfc9ae30350181ebbfec23113e61ca713c2 Mon Sep 17 00:00:00 2001 From: Paige Rubendall Date: Wed, 17 Jan 2024 12:56:31 -0500 Subject: [PATCH] adding image push workflow Signed-off-by: Paige Rubendall --- .github/workflows/docker-image.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..912f785 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -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 \ No newline at end of file