Nightly Alpha Build #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Alpha Build | |
on: | |
schedule: | |
- cron: '42 18 * * *' | |
workflow_dispatch: | |
env: | |
PUID: '1000' | |
PGID: '1000' | |
PHP_TZ: 'UTC' | |
jobs: | |
multiarch: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4.1.7 | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v3.1.0 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3.4.0 | |
- | |
name: Login to DockerHub | |
uses: docker/login-action@v3.2.0 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Build and push | |
uses: docker/build-push-action@v6.3.0 | |
with: | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64,linux/arm/v7,linux/arm64 | |
push: true | |
build-args: | | |
BRANCH=develop | |
tags: | | |
invoiceshelf/invoiceshelf:testing-${{ github.run_id }} | |
retag: | |
needs: [multiarch] | |
runs-on: ubuntu-latest | |
container: | |
image: gcr.io/go-containerregistry/crane:debug | |
steps: | |
- | |
name: Retag image | |
run: | | |
crane auth login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} index.docker.io | |
crane tag invoiceshelf/invoiceshelf:testing-${{ github.run_id }} alpha |