-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (50 loc) · 1.61 KB
/
release-updated.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
45
46
47
48
49
50
51
52
53
54
name: Release Updated
on:
push:
branches:
- swati/updates
jobs:
# define job to build and publish docker image
build-and-push:
name: Build Docker image and push
# run only when code is compiling and tests are passing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v1
with:
node-version: '20.x'
- name: npm install
run: |
npm ci
env:
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI: true
# - name: semantic release
# uses: codfish/semantic-release-action@master
# id: semantic
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Docker push version
run: |
docker build --build-arg GPR_TOKEN=$GPR_TOKEN -t ghcr.io/eyblockchain/zokrates-worker-updated:latest .
docker push ghcr.io/eyblockchain/zokrates-worker-updated:latest
env:
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Build and push
# uses: docker/build-push-action@v2
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags: ghcr.io/eyblockchain/taxgrid-api/tg-zokrates-worker:latest