mirror of
https://github.com/imapsync/imapsync.git
synced 2025-06-04 19:57:21 +02:00
Merge dd945ccba2
into 4ce248c075
This commit is contained in:
commit
edb819edde
2 changed files with 35 additions and 3 deletions
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…
Add table
Add a link
Reference in a new issue