-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (33 loc) · 1.1 KB
/
build-docker.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
# Action checks that the docker image can be built
# It doesn't push the image to the registry
name: Build Docker image
on:
push:
branches:
- release-**
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
# Disable previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: parity-large
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: "paritypr/project-mythical"
- name: Build docker image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 #v5.0.0
with:
file: docker/Dockerfile
build-args: environment="testnet"
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}