From 18329c70106bf83d048bed764f1224d4b79c0058 Mon Sep 17 00:00:00 2001 From: Federico Barresi Date: Mon, 19 Feb 2024 08:14:27 +0100 Subject: [PATCH] fixed actions for PR --- .github/workflows/docker-dev.yml | 2 -- .github/workflows/docker-pr.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/docker-pr.yml diff --git a/.github/workflows/docker-dev.yml b/.github/workflows/docker-dev.yml index c7c06ea..835783a 100644 --- a/.github/workflows/docker-dev.yml +++ b/.github/workflows/docker-dev.yml @@ -3,8 +3,6 @@ name: Docker Image DEV CI on: push: branches: [ "develop" ] - pull_request: - branches: [ "master" ] jobs: diff --git a/.github/workflows/docker-pr.yml b/.github/workflows/docker-pr.yml new file mode 100644 index 0000000..22aec2d --- /dev/null +++ b/.github/workflows/docker-pr.yml @@ -0,0 +1,30 @@ +name: Docker Image DEV CI + +on: + pull_request: + branches: [ "master" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build Docker linux + run: | + docker build -f Docker/linux-x64/Dockerfile -t fbarresi/softplc:1.2-beta${{ github.run_number }}-linux . + working-directory: ./SoftPlc + - name: Build Docker arm + run: | + docker build -f Docker/arm/Dockerfile -t fbarresi/softplc:1.2-beta${{ github.run_number }}-arm . + working-directory: ./SoftPlc + - name: Build Docker windows + run: | + docker build -f Docker/windows/Dockerfile -t fbarresi/softplc:1.2-beta${{ github.run_number }}-win . + working-directory: ./SoftPlc +