forked from genzstaking/csc-docker-pool
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 1.28 KB
/
docker.yaml
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
name: publishpublish
run-name: ${{ github.actor }} build new image
on: [push]
jobs:
publish-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the CSC CETD Docker image
run: |
timetag=(`date +%Y%M%d`)
docker build --build-arg VERSION=1.1.0 \
--tag ghcr.io/coincodile/cetd:1.1.0.${timetag} \
--tag ghcr.io/coincodile/cetd:1.1.0 \
--tag ghcr.io/coincodile/cetd:1.1 \
--tag ghcr.io/coincodile/cetd:latest \
.
docker push ghcr.io/coincodile/cetd:1.1.0.${timetag}
docker push ghcr.io/coincodile/cetd:1.1.0
docker push ghcr.io/coincodile/cetd:1.1
docker push ghcr.io/coincodile/cetd:latest