Skip to content

Commit a901257

Browse files
authored
Merge pull request #26 from EYBlockchain/liju.jose/testing-gtihub-actions
testing github update with a merge
2 parents 4e86a80 + bcc9634 commit a901257

File tree

1 file changed

+8
-26
lines changed

1 file changed

+8
-26
lines changed

.github/workflows/make-github-docker-package.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,44 +14,26 @@ jobs:
1414
with:
1515
node-version: '12.x'
1616

17-
- name: docker login
18-
uses: azure/docker-login@v1
19-
with:
20-
login-server: ${{ secrets.GPR_BASE_DOCKER_REGISTRY }}
21-
username: ${{ github.actor }}
22-
password: ${{ secrets.GITHUB_TOKEN }}
23-
2417
- name: npm install
2518
run: |
2619
npm ci
2720
env:
28-
GPR_TOKEN: ${{ secrets.GPR_TOKEN }}
21+
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2922
CI: true
3023

3124
- name: semantic release
32-
uses: codfish/semantic-release-action@v1
25+
uses: codfish/semantic-release-action@master
3326
id: semantic
3427
env:
3528
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3729
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3830

39-
- name: docker build and push latest
40-
run: |
41-
docker build --build-arg GPR_TOKEN -t $DOCKER_REGISTRY/zokrates-worker/zokrates-worker:latest .
42-
docker push $DOCKER_REGISTRY/zokrates-worker/zokrates-worker:latest
43-
env:
44-
GPR_TOKEN: ${{ secrets.GPR_TOKEN }}
45-
DOCKER_REGISTRY: ${{ secrets.GPR_DOCKER_REGISTRY }}
46-
47-
- name: docker push versions
31+
- name: Docker push version
4832
if: steps.semantic.outputs.new-release-published == 'true'
4933
run: |
50-
docker tag $DOCKER_REGISTRY/zokrates-worker/zokrates-worker $DOCKER_REGISTRY/zokrates-worker/zokrates-worker:$VERSION_TAG
51-
docker tag $DOCKER_REGISTRY/zokrates-worker/zokrates-worker $DOCKER_REGISTRY/zokrates-worker/zokrates-worker:$MAJOR_TAG
52-
docker push $DOCKER_REGISTRY/zokrates-worker/zokrates-worker:$VERSION_TAG
53-
docker push $DOCKER_REGISTRY/zokrates-worker/zokrates-worker:$MAJOR_TAG
34+
docker login https://docker.pkg.github.com -u $GITHUB_ACTOR -p $GPR_TOKEN
35+
docker build --build-arg GPR_TOKEN=$GPR_TOKEN -t docker.pkg.github.com/eyblockchain/zokrates-worker/zokrates-worker:$RELEASE_VERSION .
36+
docker push docker.pkg.github.com/eyblockchain/zokrates-worker/zokrates-worker:$RELEASE_VERSION
5437
env:
55-
DOCKER_REGISTRY: ${{ secrets.GPR_DOCKER_REGISTRY }}
56-
VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
57-
MAJOR_TAG: v${{ steps.semantic.outputs.release-major }}
38+
RELEASE_VERSION: v${{ steps.semantic.outputs.release-version }}
39+
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)