-
Notifications
You must be signed in to change notification settings - Fork 65
42 lines (39 loc) · 1.23 KB
/
build-multiarch.yml
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
name: "Build multi-arch image"
on:
push:
branches:
- 'master'
tags:
- '**'
jobs:
tag:
name: Extract tag name
runs-on: ubuntu-latest
outputs:
TAG: ${{ steps.tag.outputs.result }}
steps:
- name: Extract the tag name
id: tag
uses: actions/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.payload.ref === "refs/heads/master"
? 'latest'
: context.payload.ref.replace(/^refs\/(tags|heads)\//, '');
build:
needs:
- tag
name: Build
uses: pldin601/build-multiarch-on-aws-spots/.github/workflows/build-multiarch-on-aws-spots.yml@5c448cb91b65e617237df2326723441f25f8eea0
with:
DOCKER_IMAGE_TAG: ${{ needs.tag.outputs.TAG }}
DOCKER_IMAGE_NAME: "mwader/static-ffmpeg"
WORKFLOW_CHECKOUT: 5c448cb91b65e617237df2326723441f25f8eea0
AWS_REGION: eu-central-1
AWS_EC2_INSTANCE_SIZE: xlarge
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}