forked from ethereum/sourcify
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 916 Bytes
/
ci.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
27
28
29
30
31
32
33
34
name: CI
on:
push:
tags: ["*"]
branches: ["master"]
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: quay.io/subscan-explorer/sourcify
tags: type=sha
- name: Login to Quay.io
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
- name: Build and publish
uses: docker/build-push-action@v3
if: github.ref == 'refs/heads/master'
with:
context: .
file: ./src/Dockerfile.server
push: true
tags: ${{ steps.meta.outputs.tags }}-${{ github.run_number }}
labels: ${{ steps.meta.outputs.labels }}