-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 1.21 KB
/
pr.yml
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
name: OpenShift
env:
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
APP_NAME: testbot
IMAGE_TAGS: latest ${{ github.sha }}
OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }}
OPENSHIFT_TOKEN: ${{ secrets.OPENSHIFT_TOKEN }}
OPENSHIFT_NAMESPACE: "copilot-ops"
APP_PORT: "8080"
on:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
pull_request:
branches: [ main ]
jobs:
build-and-push:
name: Build and push to github container registry
runs-on: ubuntu-22.04
environment: development
outputs:
ROUTE: ${{ steps.deploy-and-expose.outputs.route }}
SELECTOR: ${{ steps.deploy-and-expose.outputs.selector }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v2
- name: Kind Cluster
# You may pin to the exact commit or the version.
# uses: helm/kind-action@9e8295d178de23cbfbd8fa16cf844eec1d773a07
uses: helm/[email protected]
# Run a script to create a new app or update the current one with the previously pushed container image
- run: kubectl apply -f generated-by-copilot-ops/