Skip to content

Commit

Permalink
fixed actions for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarresi committed Feb 19, 2024
1 parent 2a8caef commit 18329c7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Docker Image DEV CI
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "master" ]

jobs:

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/docker-pr.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 18329c7

Please sign in to comment.