1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- ---
- name: container image
- on:
- push:
- pull_request:
- schedule:
- - cron: '0 20 * * 5'
- jobs:
- docker-build:
- runs-on: ubuntu-22.04
- permissions: {packages: write}
- steps:
- - id: meta
-
-
- uses: docker/metadata-action@v5
- with:
-
- images: ghcr.io/${{ github.repository_owner }}/systemctl-mqtt
-
- tags: |
- type=semver,pattern={{version}}
- type=ref,event=branch
- type=ref,event=pr
- type=sha,format=long
- type=raw,value=latest,enable=false
- - uses: docker/setup-qemu-action@v3.5.0
- - uses: docker/login-action@v3
- with:
- registry: ghcr.io
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
-
-
-
- - uses: docker/setup-buildx-action@v3.10.0
-
-
-
-
-
-
-
-
- - uses: docker/build-push-action@v6.15.0
- with:
- build-args: |
- SETUPTOOLS_SCM_PRETEND_VERSION=0
- platforms: |
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
-
-
-
-
- push: true
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}
|