Skip to content

Commit

Permalink
fix(e2e): private runner execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi Markan committed Jul 6, 2023
1 parent a5b24d5 commit 2f0696c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 59 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,7 @@ jobs:
needs: set-environment
environment:
name: ${{ needs.set-environment.outputs.environment }}
runs-on: ubuntu-latest
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving the Dashboard hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
machines: [1, 2, 3, 4]
runs-on: [self-hosted, linux]

env:
BASIC_AUTH_KEY: ${{ secrets.BASIC_AUTH_KEY }}
Expand Down
25 changes: 6 additions & 19 deletions src/ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
# Node Alpine Docker Image
FROM node:18.13-alpine3.17
###################
# 1. BUILD
###################

FROM node:20.3.1-alpine3.17

# Variables
ARG GITHUB_SHA
ENV GITHUB_SHA=$GITHUB_SHA
ENV SSH_PORT=2222

# SSH Setup
# 1. Artifcats
ADD init.sh /bin/init.sh
ADD sshd_config /etc/ssh/
RUN chmod 755 /bin/init.sh

# 2. Install packages
RUN apk add bash openrc openssh curl \
&& echo "root:Docker!" | chpasswd \
&& rm -rf /var/cache/apk/* \
&& rc-update add sshd

#3. Expose SSH port
EXPOSE 80 ${SSH_PORT}

# Node setup
WORKDIR /app
Expand All @@ -30,4 +17,4 @@ RUN npm cache clean --force
COPY . .

# Execute Script
ENTRYPOINT ["/bin/init.sh"]
CMD ["npx", "nodemon", "server/index.ts"]
19 changes: 0 additions & 19 deletions src/ui/init.sh

This file was deleted.

12 changes: 0 additions & 12 deletions src/ui/sshd_config

This file was deleted.

0 comments on commit 2f0696c

Please sign in to comment.