Skip to content

Commit 245df13

Browse files
committed
split scheduled and release docker action
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 2fc6fb2 commit 245df13

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

.github/workflows/release-docker.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: "Release: docker"
22

33
on:
4-
schedule:
5-
- cron: '0 6 * * 1'
64
push:
75
branches:
86
- '**'
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "Scheduled: docker"
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 * * 1'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Docker meta
13+
id: docker_meta
14+
uses: crazy-max/ghaction-docker-meta@v1
15+
with:
16+
images: webdevops/kube-pool-manager,quay.io/webdevops/kube-pool-manager
17+
#tag-sha: true
18+
19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v1
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v1
24+
25+
- name: Login to DockerHub
26+
uses: docker/login-action@v1
27+
with:
28+
username: ${{ secrets.DOCKERHUB_USERNAME }}
29+
password: ${{ secrets.DOCKERHUB_TOKEN }}
30+
31+
- name: Login to Quay
32+
uses: docker/login-action@v1
33+
with:
34+
registry: quay.io
35+
username: ${{ secrets.QUAY_USERNAME }}
36+
password: ${{ secrets.QUAY_TOKEN }}
37+
38+
- name: Build and push
39+
uses: docker/build-push-action@v2
40+
with:
41+
context: .
42+
file: ./Dockerfile
43+
platforms: linux/amd64,linux/arm,linux/arm64,linux/ppc64le
44+
push: ${{ github.event_name != 'pull_request' }}
45+
tags: ${{ steps.docker_meta.outputs.tags }}
46+
labels: ${{ steps.docker_meta.outputs.labels }}

0 commit comments

Comments
 (0)