Unverified Commit 703c14ad authored by github-actions[bot]'s avatar github-actions[bot] Committed by GitHub
Browse files

Update pipeline (#56)



* Update pipeline

* Change ci rules

* Added test ci

* Rename pipeline

* Rename job

* Fix needs

* Fix rules

---------

Co-authored-by: default avatarFedor Batonogov <f.batonogov@yandex.ru>
parent 0e8a9f5f
Loading
Loading
Loading
Loading
+1 −16
Original line number Diff line number Diff line
@@ -2,28 +2,13 @@ name: CI LINUX

on:
  push:
    branches:
      - '*'
      - '!main'
    tags:
      - '*'
    tags: [ 'v*.*.*' ]

env:
  DOCKERFILE: Dockerfile-py3-linux

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@v3
      - name: Run Tests
        run: |
          echo "Building image to test"
          ./build-and-test.sh ${{ env.DOCKERFILE }}

  build_and_push_to_registry:
    needs: test
    name: Push Docker image to Docker Hub
    runs-on: ubuntu-latest
    steps:
+1 −16
Original line number Diff line number Diff line
@@ -2,28 +2,13 @@ name: CI OSX

on:
  push:
    branches:
      - '*'
      - '!main'
    tags:
      - '*'
    tags: [ 'v*.*.*' ]

env:
  DOCKERFILE: Dockerfile-py3-osx

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@v3
      - name: Run Tests
        run: |
          echo "Building image to test"
          ./build-and-test.sh ${{ env.DOCKERFILE }}

  build_and_push_to_registry:
    needs: test
    name: Push Docker image to Docker Hub
    runs-on: ubuntu-latest
    steps:
+1 −16
Original line number Diff line number Diff line
@@ -2,28 +2,13 @@ name: CI WINDOWS

on:
  push:
    branches:
      - '*'
      - '!main'
    tags:
      - '*'
    tags: [ 'v*.*.*' ]

env:
  DOCKERFILE: Dockerfile-py3-windows

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@v3
      - name: Run Tests
        run: |
          echo "Building image to test"
          ./build-and-test.sh ${{ env.DOCKERFILE }}

  build_and_push_to_registry:
    needs: test
    name: Push Docker image to Docker Hub
    runs-on: ubuntu-latest
    steps:
+1 −5
Original line number Diff line number Diff line
@@ -7,17 +7,13 @@ name: Docker Image CI Linux

on:
  push:
    branches: [ "main" ]
    # Publish semver tags as releases.
    tags: [ 'v*.*.*' ]
  pull_request:
    branches: [ "main" ]

env:
  # Use docker.io for Docker Hub if empty
  REGISTRY: ghcr.io
  # github.repository as <account>/<repo>
  IMAGE_NAME: ${{ github.repository }}
  IMAGE_NAME: ${{ github.actor }}/pyinstaller-linux

jobs:
  build:
+1 −5
Original line number Diff line number Diff line
@@ -7,17 +7,13 @@ name: Docker Image CI Windows

on:
  push:
    branches: [ "main" ]
    # Publish semver tags as releases.
    tags: [ 'v*.*.*' ]
  pull_request:
    branches: [ "main" ]

env:
  # Use docker.io for Docker Hub if empty
  REGISTRY: ghcr.io
  # github.repository as <account>/<repo>
  IMAGE_NAME: ${{ github.repository }}
  IMAGE_NAME: ${{ github.actor }}/pyinstaller-windows

jobs:
  build:
Loading