Skip to content

Commit 963807a

Browse files
committed
fixes
1 parent 7b05d8d commit 963807a

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

.controlplane/Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ RUN yarn install --frozen-lockfile
4646
# Copy application code
4747
COPY . .
4848

49-
RUN echo "ZYXYZYXYZ"
50-
51-
RUN ls -l
52-
RUN ls -l app
53-
5449
# Final stage for app image
5550
FROM base
5651

@@ -63,10 +58,6 @@ RUN apt-get update -qq && \
6358
COPY --from=build /usr/local/bundle /usr/local/bundle
6459
COPY --from=build /app /app
6560

66-
RUN ls -l app
67-
68-
RUN cat /app/client/app/bundles/comments/components/Footer/Footer.jsx
69-
7061
RUN chmod +x /app/.controlplane/*.sh
7162

7263
ENV RAILS_ENV=production \

.github/actions/build-docker-image/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ runs:
2828
fi
2929
3030
echo "🏗️ Building Docker image${PR_INFO} (commit ${{ inputs.commit }})..."
31-
32-
/usr/bin/git log -1 --format=%H
3331
3432
if cpflow build-image -a "${{ inputs.app_name }}" --commit="${{ inputs.commit }}" --org="${{ inputs.org }}"; then
3533
image_tag="${{ inputs.org }}/${{ inputs.app_name }}:${{ inputs.commit }}"

.github/workflows/deploy-to-control-plane-staging.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,21 @@ run-name: Deploy Control Plane Staging App
55

66
# Controls when the workflow will run
77
on:
8+
pull_request:
9+
types: [opened, synchronize, reopened]
810
push:
911
branches:
10-
- '*'
12+
- '**' # Any branch
13+
- '!main' # Except main
14+
- '!master' # Except master
15+
issue_comment:
16+
types: [created]
1117
workflow_dispatch:
18+
inputs:
19+
pr_number:
20+
description: 'Pull Request number to deploy'
21+
required: true
22+
type: number
1223

1324
# Convert the GitHub secret variables to environment variables for use by the Control Plane CLI
1425
env:

.github/workflows/nightly-remove-stale-review-apps.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ on:
66
schedule:
77
- cron: '0 0 * * *'
88

9-
env:
10-
CPLN_ORG: ${{secrets.CPLN_ORG_STAGING}}
11-
CPLN_TOKEN: ${{secrets.CPLN_TOKEN_STAGING}}
12-
139
jobs:
1410
remove-stale-review-apps:
1511
runs-on: ubuntu-latest
@@ -20,6 +16,9 @@ jobs:
2016

2117
- name: Setup Environment
2218
uses: ./.github/actions/setup-environment
19+
with:
20+
token: ${{ secrets.CPLN_TOKEN_STAGING }}
21+
org: ${{ vars.CPLN_ORG_STAGING }}
2322

2423
- name: Get Stale PRs
2524
id: stale_prs

0 commit comments

Comments
 (0)