-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 871 Bytes
/
main.yml
File metadata and controls
34 lines (30 loc) · 871 Bytes
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
name: Publish docker images on docker hub
run-name: Publishing docker images
on:
release:
types: [published]
# on: push
jobs:
Build-and-publish-for-i386:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Publish docker image
uses: ./.github/actions/publish
with:
arch: i386
docker_user: ${{ secrets.DOCKER_USER }}
docker_token: ${{ secrets.DOCKER_TOKEN }}
Build-and-publish-for-amd64:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Publish docker image
uses: ./.github/actions/publish
with:
arch: amd64
docker_user: ${{ secrets.DOCKER_USER }}
docker_token: ${{ secrets.DOCKER_TOKEN }}
tag: latest