mirror of
https://github.com/imapsync/imapsync.git
synced 2024-11-17 00:02:29 +01:00
Updated GitHub Action
Enable conditional push to Docker Hub (only for release tags) Enable Dependabot
This commit is contained in:
parent
7fda0fe570
commit
02fdc02197
7
.github/dependabot.yml
vendored
Normal file
7
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
version: 2
|
||||
updates:
|
||||
# Maintain dependencies for GitHub Actions
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
31
.github/workflows/docker-image.yml
vendored
31
.github/workflows/docker-image.yml
vendored
@ -1,17 +1,33 @@
|
||||
name: Docker Image CI
|
||||
name: Docker Multi-Arch Build & Push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches:
|
||||
- 'master'
|
||||
tags:
|
||||
- '[1-9]+.[0-9]+'
|
||||
pull_request:
|
||||
branches: [master]
|
||||
branches:
|
||||
|
||||
jobs:
|
||||
buildx:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Docker meta
|
||||
id: docker_meta
|
||||
uses: crazy-max/ghaction-docker-meta@v1
|
||||
with:
|
||||
images: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGENAME }}
|
||||
tag-semver: |
|
||||
{{version}}
|
||||
{{major}}. {{minor}}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
@ -19,3 +35,12 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Available platforms
|
||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./INSTALL.d/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64,linux/arm,linux/s390x
|
||||
push: ${{ github.event_name != 'pull_request' && steps.docker_meta.outputs.version != 'master' }}
|
||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
Loading…
Reference in New Issue
Block a user