-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (45 loc) · 1.23 KB
/
promote.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
50
name: rspamd_test
on:
workflow_call:
inputs:
dockerhub_tags_asan:
required: true
type: string
dockerhub_tags_release:
required: true
type: string
image:
required: true
type: string
image_asan:
required: true
type: string
jobs:
promote:
runs-on: "ubuntu-22.04"
steps:
- name: Log in to Dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push image
run: |
IFS=, read -a tags <<< "${{ inputs.dockerhub_tags_release }}"
for tag in ${tags[@]}
do
docker buildx imagetools create -t ${tag} ${{ inputs.image }}
done
- name: Push ASAN image
run: |
IFS=, read -a tags <<< "${{ inputs.dockerhub_tags_asan }}"
for tag in ${tags[@]}
do
docker buildx imagetools create -t ${tag} ${{ inputs.image_asan }}
done