-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (54 loc) · 1.71 KB
/
Copy pathdocker.yml
File metadata and controls
54 lines (54 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: DockerX Workflow
on:
push:
tags:
- "*"
branches-ignore:
- none
workflow_dispatch:
jobs:
fast:
name: Fast (${{ matrix.config.dockerfile }})
strategy:
fail-fast: false
matrix:
config:
- { dockerfile: "Dockerfile", context: "pushi", tag_suffix: "-amd64" }
uses: ./.github/workflows/dockerx-build.yml
with:
dockerfile: ${{ matrix.config.dockerfile }}
context: ${{ matrix.config.context }}
platforms: "linux/amd64"
tag_suffix: ${{ matrix.config.tag_suffix }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
full:
name: Full (${{ matrix.config.dockerfile }})
strategy:
fail-fast: false
matrix:
config:
- { dockerfile: "Dockerfile", context: "pushi", platforms: "linux/amd64,linux/arm64/v8" }
uses: ./.github/workflows/dockerx-build.yml
with:
dockerfile: ${{ matrix.config.dockerfile }}
context: ${{ matrix.config.context }}
platforms: ${{ matrix.config.platforms }}
tag_suffix: ""
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
trigger-deploy-pushi:
name: Trigger pushi deployment
needs: fast
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: hivesolutions/deploy-action@v1
with:
repository: hivesolutions/infra-bemisc
service: pushi
group: apps
tag: ${{ github.ref_name }}-amd64
token: ${{ secrets.INFRA_DEPLOY_PAT }}