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

Upgrade linux actions (#61)

parent e4b98aa0
Loading
Loading
Loading
Loading
+16 −23
Original line number Diff line number Diff line
name: CI LINUX
name: ci linux

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

jobs:
  build_and_push_to_registry:
    name: Push Docker image to Docker Hub
  docker:
    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
      -
        name: Set up QEMU
        uses: docker/setup-qemu-action@v3
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
      -
        name: Login to Docker Hub
        uses: docker/login-action@v3
        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

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

      - name: Build and push Docker image (release)
        uses: docker/build-push-action@v3
      -
        name: Build and push
        uses: docker/build-push-action@v5
        with:
          context: .
          file: Dockerfile-py3-linux
          platforms: |
            linux/i386
            linux/amd64
@@ -39,9 +34,7 @@ jobs:
            linux/arm64/v8
            linux/ppc64le
            linux/s390x
          file: Dockerfile-py3-linux
          push: true
          tags: |
            ${{ github.ref_name }}"
            ${{ secrets.DOCKERHUB_USERNAME }}/pyinstaller-linux:${{ github.ref_name }}
            ${{ secrets.DOCKERHUB_USERNAME }}/pyinstaller-linux:latest
          labels: ${{ steps.meta.outputs.labels }}
+16 −24
Original line number Diff line number Diff line
name: CI LINUX SLIM
name: ci linux slim

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

jobs:
  build_and_push_to_registry:
    name: Push Docker image to Docker Hub
  docker:
    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
      -
        name: Set up QEMU
        uses: docker/setup-qemu-action@v3
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
      -
        name: Login to Docker Hub
        uses: docker/login-action@v3
        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 (release)
        uses: docker/build-push-action@v3
      -
        name: Build and push
        uses: docker/build-push-action@v5
        with:
          context: .
          file: Dockerfile-py3-linux-slim
          platforms: |
            linux/i386
            linux/amd64
@@ -39,9 +34,6 @@ jobs:
            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.outputs.labels }}
            ${{ secrets.DOCKERHUB_USERNAME }}/pyinstaller-linux:${{ github.ref_name }}-slim