-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 1.2 KB
/
docker-pathfinder.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
name: Build Docker Image with pathfinder
on:
workflow_dispatch:
inputs:
firestarkVersion:
description: "firestark version"
required: true
pathfinderVersion:
description: "pathfinder version"
required: true
jobs:
build:
name: "Build"
runs-on: "ubuntu-latest"
env:
DOCKER_REPOSITORY: "starknet/firestark"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Login to Docker Hub"
uses: "docker/[email protected]"
with:
username: "${{ secrets.DOCKER_HUB_USERNAME }}"
password: "${{ secrets.DOCKER_HUB_PASSWORD }}"
- name: "Build Docker image"
run: |
docker build -t ${DOCKER_REPOSITORY}:${{ github.event.inputs.firestarkVersion }}-pathfinder-${{ github.event.inputs.pathfinderVersion }} --build-arg FIRESTARK_VERSION=${{ github.event.inputs.firestarkVersion }} --build-arg PATHFINDER_VERSION=${{ github.event.inputs.pathfinderVersion }} -f ./Dockerfile.pathfinder .
- name: "Push Docker image"
run: |
docker push ${DOCKER_REPOSITORY}:${{ github.event.inputs.firestarkVersion }}-pathfinder-${{ github.event.inputs.pathfinderVersion }}