Skip to content

Commit dd51dd7

Browse files
authored
Call createJob API to create job directly thru db (#46)
* call createJob API to create job directly thru db * add more details to jobs * add more details to job * fix browser name * update base image * add framework and platform version * fix conflict * upgrade node-saucelabs * update release BUILD_TAG
1 parent f180ff5 commit dd51dd7

File tree

5 files changed

+290
-280
lines changed

5 files changed

+290
-280
lines changed

.github/workflows/release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
tags: |
3838
saucelabs/stt-playwright-jest-node:latest
3939
saucelabs/stt-playwright-jest-node:${{ steps.prep.outputs.version }}
40+
build-args: |
41+
BUILD_TAG=${{ steps.prep.outputs.version }}
42+
4043
# TODO: Re-enable this once we start making playwright bundles
4144
#release-windows-bundle:
4245
#runs-on: windows-latest
@@ -77,6 +80,7 @@ jobs:
7780
#asset_path: ./sauce-playwright-win.zip
7881
#asset_name: sauce-playwright-win.zip
7982
#asset_content_type: application/zip
83+
8084
release-template-bundle:
8185
runs-on: ubuntu-latest
8286
steps:

Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM saucelabs/testrunner-image:v0.1.0
1+
FROM saucelabs/testrunner-image:v0.1.1
22

33
USER root
44

@@ -83,6 +83,8 @@ WORKDIR /home/seluser
8383
COPY package.json .
8484
COPY package-lock.json .
8585
RUN npm ci --production
86+
ENV PLAYWRIGHT_VERSION=^1.4.1
87+
8688

8789
# Playwright caches the downloaded browser by default in ~/.cache/ms-playwright
8890
# However, running the container in CI may result in a different active user and therefore home folder.
@@ -94,6 +96,10 @@ COPY --chown=seluser:seluser . .
9496
# Workaround for permissions in CI if run with a different user
9597
RUN chmod 777 -R /home/seluser/
9698

99+
ENV IMAGE_NAME=saucelabs/stt-playwright-jest-node
100+
ARG BUILD_TAG
101+
ENV IMAGE_TAG=${BUILD_TAG}
102+
97103
#==================
98104
# ENTRYPOINT & CMD
99105
#==================

0 commit comments

Comments
 (0)