Merge pull request #51 from niveksan/dependabot/docker/rclone/rclone-… #125
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: Docker Image CI | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '.github/**' | |
# pull_request: | |
# branches: [ main ] | |
# schedule: | |
# - cron: "00 23 * * 0" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
# - name: Docker Image Update Checker | |
# id: baseupdatecheck | |
# uses: lucacome/[email protected] | |
# with: | |
# #base-image: rclone/rclone:latest | |
# base-image: rclone/rclone | |
# image: niveksan/rclone-crond:arm | |
# only execute subsequent steps if an update is actually NEEDED. | |
# unfortunately we need to add an if-condition to all steps now | |
# because a clean exit can't be triggered within a job it seems | |
# (a cancellation is NOT the same and triggers a failure email) | |
# see also https://github.com/actions/runner/issues/662 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
# if: steps.baseupdatecheck.outputs.needs-updating == 'true' | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/[email protected] | |
# if: steps.baseupdatecheck.outputs.needs-updating == 'true' | |
- name: Login to DockerHub | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
# if: steps.baseupdatecheck.outputs.needs-updating == 'true' | |
- name: Build and push | |
uses: docker/[email protected] | |
with: | |
platforms: linux/arm/v7 | |
push: true | |
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/rclone-crond:armv7 | |
# if: steps.baseupdatecheck.outputs.needs-updating == 'true' | |
- name: Build and push | |
uses: docker/[email protected] | |
with: | |
platforms: linux/arm64/v8 | |
push: true | |
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/rclone-crond:armv8 |