Skip to content

Commit e4efdcd

Browse files
committed
split scheduled and release workflow
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 1b17e42 commit e4efdcd

File tree

2 files changed

+50
-6
lines changed

2 files changed

+50
-6
lines changed

.github/workflows/release-docker.yml

Lines changed: 4 additions & 6 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
- '**'
@@ -23,23 +21,23 @@ jobs:
2321

2422
- name: Set up QEMU
2523
uses: docker/setup-qemu-action@v1
26-
24+
2725
- name: Set up Docker Buildx
2826
uses: docker/setup-buildx-action@v1
2927

3028
- name: Login to DockerHub
31-
uses: docker/login-action@v1
29+
uses: docker/login-action@v1
3230
with:
3331
username: ${{ secrets.DOCKERHUB_USERNAME }}
3432
password: ${{ secrets.DOCKERHUB_TOKEN }}
3533

3634
- name: Login to Quay
37-
uses: docker/login-action@v1
35+
uses: docker/login-action@v1
3836
with:
3937
registry: quay.io
4038
username: ${{ secrets.QUAY_USERNAME }}
4139
password: ${{ secrets.QUAY_TOKEN }}
42-
40+
4341
- name: Build and push
4442
uses: docker/build-push-action@v2
4543
with:
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/azure-metrics-exporter,quay.io/webdevops/azure-metrics-exporter
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)