-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (37 loc) · 1.05 KB
/
load_simulator.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
39
40
41
42
43
44
name: Build Load Simulator Service
on:
push:
paths:
- .github/workflows/load_simulator.yml
- apps/microservices/load_simulator/**
- docker/microservices/load_simulator/**
branches:
- main
permissions:
contents: read
id-token: write
env:
REPO: zeusfyi
NAME: load-simulator
TAG: latest
GOOS: linux
GOARCH: amd64
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Depot CLI
uses: depot/setup-action@v1
- name: Login to Docker Registry
run: docker login -u zeusfyi -p ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build And Publish Zeusfyi Load Simulator
run: |
sed -i '/\.\/apps\/external\/web3/d' go.work
depot build \
-t ${{ env.REPO }}/${{ env.NAME }}:${{ env.TAG}} \
--platform=${{ env.GOOS }}/${{ env.GOARCH }} \
--token ${{ secrets.DEPOT_TOKEN }} \
--provenance=false \
-f docker/microservices/load_simulator/Dockerfile . --push