diff --git a/.github/workflows/docker-console-test.yml b/.github/workflows/docker-console-test.yml new file mode 100644 index 0000000..d58b200 --- /dev/null +++ b/.github/workflows/docker-console-test.yml @@ -0,0 +1,23 @@ +name: Docker / console-test + +on: + push: + branches: + - main + paths: + - 'console-test/version.json' + pull_request: + paths: + - 'console-test/**' + - '.github/workflows/docker-console-test.yml' + +jobs: + build_docker_image: + uses: vegaprotocol/docker-public/.github/workflows/docker-generic.yml@main + with: + image_name: console-test + docker_context_path: ./console-test + platforms: linux/amd64 + secrets: + dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/docker-github-runner.yml b/.github/workflows/docker-github-runner.yml index 4b9400e..1bc6267 100644 --- a/.github/workflows/docker-github-runner.yml +++ b/.github/workflows/docker-github-runner.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - github-runner-test paths: - 'github-runner/version.json' pull_request: diff --git a/console-test/Dockerfile b/console-test/Dockerfile new file mode 100644 index 0000000..ba8dc68 --- /dev/null +++ b/console-test/Dockerfile @@ -0,0 +1,36 @@ +FROM summerwind/actions-runner:v2.308.0-ubuntu-22.04 + +USER root +RUN curl -sSL https://install.python-poetry.org | python3 - \ + && curl -s https://deb.nodesource.com/setup_16.x | bash \ + && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ + && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ + && apt-get update \ + && apt-get install -y \ + libnss3 \ + libnspr4 \ + libatk1.0-0 \ + libatk-bridge2.0-0 \ + libcups2 \ + libdrm2 \ + libxcb1 \ + libxkbcommon0 \ + libatspi2.0-0 \ + libx11-6 \ + libxcomposite1 \ + libxdamage1 \ + libxext6 \ + libxfixes3 \ + libxrandr2 \ + libgbm1 \ + libpango-1.0-0 \ + libcairo2 \ + libasound2 \ + nodejs \ + yarn \ + && rm -rf /var/lib/apt/lists/* + +USER runner +RUN poetry --version +RUN node -v +RUN yarn -v \ No newline at end of file diff --git a/console-test/version.json b/console-test/version.json new file mode 100644 index 0000000..e73e0ce --- /dev/null +++ b/console-test/version.json @@ -0,0 +1,5 @@ +{ + "version": "v2.308.0-ubuntu-22.04-4", + "name": "vegaprotocol/console-test" +} +