From 11c8d9252f4e65e123925b46f2a8be8af53dc701 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Sat, 28 Mar 2020 18:30:36 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ddfcb0c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: + - master + - github-actions + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + create-infraonly: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + + - name: Login to Dockerhub + run: echo ${{secrets.DOCKERHUB_PASSWORD}} | docker login -u ${{secrets.DOCKERHUB_USER}} --password-stdin + + - name: Build the image + run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:infraonly -f Dockerfile.infraonly ./ctan + + create-minimal: + runs-on: ubuntu-latest + needs: [create-infraonly] + steps: + - uses: actions/checkout@v2 + + - name: Login to Dockerhub + run: echo ${{secrets.DOCKERHUB_PASSWORD}} | docker login -u ${{secrets.DOCKERHUB_USER}} --password-stdin + + - name: Build the image + run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:minimal -f Dockerfile.minimal ./ctan