forked from projecteru2/core
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.4 KB
/
dockerimage.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
51
name: docker-image
on:
push:
tags:
- v*
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: build and push to github packages
uses: docker/build-push-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
tag_with_ref: true
tag_with_sha: false
- name: build and push to docker hub
uses: docker/build-push-action@v1
with:
repository: projecteru2/core
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_with_ref: true
tag_with_sha: false
- name: "[debug version] build and push to docker hub"
uses: docker/build-push-action@v1
with:
build_args: KEEP_SYMBOL=1
repository: projecteru2/core
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: ${{ github.sha }}-debug
- name: "[debug version] build and push to github packages"
uses: docker/build-push-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
build_args: KEEP_SYMBOL=1
tags: ${{ github.sha }}-debug