-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.07 KB
/
image.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
43
44
45
46
47
48
49
name: Build and Push Docker Images
on:
push:
branches:
- master
- release-*
tags:
- "v*"
workflow_dispatch: {}
permissions:
contents: read
packages: write
jobs:
image:
name: Build and Push Docker Images
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Login ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login docker.io
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ github.actor }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Show Available Platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Build and Push Docker Images
run: make container-build-push