-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (52 loc) · 1.38 KB
/
push-docker-v2-dev.yaml
File metadata and controls
55 lines (52 loc) · 1.38 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
55
name: push v2-dev on dockerhub
on:
release:
types: [ published ]
push:
branches:
- release-v2-dev
workflow_dispatch:
inputs:
tag:
type: string
description: "Image tag manually"
adc_version:
type: string
default: dev
description: "adc version"
jobs:
docker:
runs-on: buildjet-2vcpu-ubuntu-2204
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
submodules: recursive
- name: Setup Go Env
uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push multi-arch image
env:
ARCH: amd64
ENABLE_PROXY: "false"
BASE_IMAGE_TAG: "debug"
TAG: ${{ github.event.inputs.tag || github.ref_name }}dev
IMAGE_TAG: ${{ github.event.inputs.tag || github.ref_name }}dev
ADC_VERSION: ${{ github.event.inputs.adc_version }}
run: |
echo "building images..."
make docker-build
make docker-push