forked from banteg/gasprice
-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (33 loc) · 983 Bytes
/
release.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
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
# Wait for up to a minute for previous run to complete, abort if not done by then
pre-run:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: 'Block Concurrent Executions'
uses: softprops/turnstyle@v1
with:
poll-interval-seconds: 10
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
create_release:
name: Create Release
runs-on: ubuntu-latest
needs: pre-run
steps:
- uses: actions/checkout@v1
- name: Docker Login
uses: azure/docker-login@v1
with:
login-server: docker.pkg.github.com
username: $GITHUB_ACTOR
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Build & Push
run: |
docker build -t docker.pkg.github.com/1inch/gasprice/gasprice:${GITHUB_REF##*/} .
docker push docker.pkg.github.com/1inch/gasprice/gasprice:${GITHUB_REF##*/}