Skip to content

Commit

Permalink
workflow: Add container building workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywang committed May 29, 2023
1 parent ecf0b1c commit 3094cc9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Build kite-proxy container for composer ci

on:
workflow_dispatch:

jobs:
build-kite-proxy-composer-container:
runs-on: container-runner
container:
image: quay.io/fedora/fedora:38-x86_64
options: --privileged
steps:
- uses: actions/checkout@v3

- name: Install podman and
run: sudo dnf install -y podman

- name: Build kite-proxy image and upload to quay.io
run: |
podman build -t "kite-proxy:${GITHUB_REF_NAME}" -f proxy/Dockerfile proxy
podman push --creds "${QUAY_USER}":"${QUAY_PASS}" "kite-proxy:${GITHUB_REF_NAME}" "quay.io/rhel-edge/kite-proxy:${GITHUB_REF_NAME}"
env:
QUAY_USER: ${{ secrets.QUAY_USERNAME }}
QUAY_PASS: ${{ secrets.QUAY_PASSWORD }}

0 comments on commit 3094cc9

Please sign in to comment.