diff --git a/.github/workflows/just-test.yml b/.github/workflows/just-test.yml deleted file mode 100644 index 5cbf23d..0000000 --- a/.github/workflows/just-test.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Just test - -on: - pull_request: - branches: - - master - -jobs: - build: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - name: Build - run: | - cd openjdk11 - docker build -t trisbee/openjdk11 . \ No newline at end of file diff --git a/.github/workflows/pull-request-created.yml b/.github/workflows/pull-request-created.yml new file mode 100644 index 0000000..2ff5a0b --- /dev/null +++ b/.github/workflows/pull-request-created.yml @@ -0,0 +1,25 @@ +name: 'Pull request' + +on: + pull_request: + branches: + - master + +jobs: + build-openjdk11: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: "Build Docker Image" + run: | + cd openjdk11 + docker build -t trisbee/openjdk11 . + + build-node16: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: "Build Docker Image" + run: | + cd node16 + docker build -t trisbee/node16 . diff --git a/node16/Dockerfile b/node16/Dockerfile new file mode 100644 index 0000000..b7e1a9e --- /dev/null +++ b/node16/Dockerfile @@ -0,0 +1,11 @@ +FROM node:16.13.2-alpine + +# add packages to system +RUN apk update +RUN apk add rsync + +# Corepack is included by default with all Node.js installs, but is currently opt-in. +RUN corepack enable +RUN yarn set version stable + +CMD [""]