Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split pipelines for linux actions #59

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/CI_LINUX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ jobs:
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/pyinstaller-linux

- name: Extract metadata (tags, labels) for Docker
id: meta-slim
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/pyinstaller-linux-slim

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -51,22 +45,3 @@ jobs:
${{ github.ref_name }}
${{ secrets.DOCKERHUB_USERNAME }}/pyinstaller-linux:latest
labels: ${{ steps.meta.outputs.labels }}

- name: Build and push Docker image slim
uses: docker/build-push-action@v3
with:
context: .
platforms: |
linux/i386
linux/amd64
linux/arm/v5
linux/arm/v7
linux/arm64/v8
linux/ppc64le
linux/s390x
file: Dockerfile-py3-linux-slim
push: true
tags: |
${{ github.ref_name }}
${{ secrets.DOCKERHUB_USERNAME }}/pyinstaller-linux-slim:latest
labels: ${{ steps.meta-slim.outputs.labels }}
47 changes: 47 additions & 0 deletions .github/workflows/CI_LINUX_SLIM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI LINUX SLIM

on:
push:
tags: [ 'v*.*.*' ]

jobs:
build_and_push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/pyinstaller-linux-slim

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
platforms: |
linux/i386
linux/amd64
linux/arm/v5
linux/arm/v7
linux/arm64/v8
linux/ppc64le
linux/s390x
file: Dockerfile-py3-linux
push: true
tags: |
${{ github.ref_name }}
${{ secrets.DOCKERHUB_USERNAME }}/pyinstaller-linux-slim:latest
labels: ${{ steps.meta.outputs.labels }}
Loading