pyinstaller-wxpython-linux/.github/workflows/build.yaml

47 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2024-06-09 22:31:55 +00:00
name: Build and Push Docker Image
on:
push:
branches:
- main # Change this to your main branch name or remove this line if you want to trigger on all branches
env:
2024-06-09 23:24:16 +00:00
IMAGE_NAME: pyinstaller-wxpython-linux
2024-06-09 22:31:55 +00:00
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
2024-06-11 08:07:07 +00:00
- name: Build and push part 1
2024-06-09 22:31:55 +00:00
uses: docker/build-push-action@v5
with:
push: true
2024-06-10 20:55:04 +00:00
platforms: |
linux/amd64
linux/arm64
2024-06-11 08:07:07 +00:00
tags: ghcr.io/btclock/${{ env.IMAGE_NAME }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push part 2
uses: docker/build-push-action@v5
with:
push: true
platforms: |
2024-06-10 20:55:04 +00:00
linux/arm/v7
linux/arm64/v8
2024-06-09 23:24:16 +00:00
tags: ghcr.io/btclock/${{ env.IMAGE_NAME }}:latest
2024-06-09 22:31:55 +00:00
cache-from: type=gha
cache-to: type=gha,mode=max