fix: renamed ci docker image to tdrive
This commit is contained in:
@@ -11,16 +11,10 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: cd twake && docker build -t twaketech/twake-nginx -f docker/twake-nginx/Dockerfile .
|
- run: cd twake && docker build -t twaketech/tdrive-nginx -f docker/twake-nginx/Dockerfile .
|
||||||
|
|
||||||
build-php:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- run: cd twake && docker build -t twaketech/twake-php -f docker/twake-php/Dockerfile .
|
|
||||||
|
|
||||||
build-node:
|
build-node:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: cd twake && docker build --target production -t twaketech/twake-node -f docker/twake-node/Dockerfile .
|
- run: cd twake && docker build --target production -t twaketech/tdrive-node -f docker/twake-node/Dockerfile .
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
- name: build
|
- name: build
|
||||||
run: cd twake && docker build -t integration-test -f docker/integration-test/Dockerfile .
|
run: cd twake && docker build -t integration-test -f docker/integration-test/Dockerfile .
|
||||||
- name: build-node
|
- name: build-node
|
||||||
run: cd twake && docker build -t twaketech/twake-node -f docker/twake-node/Dockerfile .
|
run: cd twake && docker build -t twaketech/tdrive-node -f docker/twake-node/Dockerfile .
|
||||||
- name: run-twake-instance
|
- name: run-twake-instance
|
||||||
run: cd twake && docker-compose -f docker-compose.onpremise.mongo.yml up -d && sleep 60
|
run: cd twake && docker-compose -f docker-compose.onpremise.mongo.yml up -d && sleep 60
|
||||||
- name: get-logs
|
- name: get-logs
|
||||||
|
|||||||
@@ -10,33 +10,6 @@ on:
|
|||||||
- ".github/workflows/**"
|
- ".github/workflows/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-php:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- run: 'echo "DOCKERTAGVERSION=2023.Q1.1223" >> $GITHUB_ENV'
|
|
||||||
- name: Set env to develop
|
|
||||||
if: endsWith(github.ref, '/develop')
|
|
||||||
run: 'echo "DOCKERTAG=develop" >> $GITHUB_ENV; echo "DOCKERTAGVERSION=2023.Q1.1223" >> $GITHUB_ENV'
|
|
||||||
- name: Set env to develop
|
|
||||||
if: endsWith(github.ref, '/qa')
|
|
||||||
run: 'echo "DOCKERTAG=qa" >> $GITHUB_ENV; echo "DOCKERTAGVERSION=2023.Q1.1223" >> $GITHUB_ENV'
|
|
||||||
- name: Set env to develop
|
|
||||||
if: endsWith(github.ref, '/canary')
|
|
||||||
run: 'echo "DOCKERTAG=canary" >> $GITHUB_ENV; echo "DOCKERTAGVERSION=${{ env.DOCKERTAGVERSION }}-canary" >> $GITHUB_ENV'
|
|
||||||
- name: Set env to production
|
|
||||||
if: endsWith(github.ref, '/main')
|
|
||||||
run: 'echo "DOCKERTAG=latest" >> $GITHUB_ENV'
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Publish to Registry
|
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
|
||||||
with:
|
|
||||||
name: twaketech/twake-php
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
workdir: twake
|
|
||||||
buildoptions: "-t twaketech/twake-php -f docker/twake-php/Dockerfile"
|
|
||||||
tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}"
|
|
||||||
|
|
||||||
deploy-node:
|
deploy-node:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
@@ -57,11 +30,11 @@ jobs:
|
|||||||
- name: Publish to Registry
|
- name: Publish to Registry
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
with:
|
with:
|
||||||
name: twaketech/twake-node
|
name: twaketech/tdrive-node
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
workdir: twake
|
workdir: twake
|
||||||
context: .
|
context: .
|
||||||
target: production
|
target: production
|
||||||
buildoptions: "-t twaketech/twake-node -f docker/twake-node/Dockerfile"
|
buildoptions: "-t twaketech/tdrive-node -f docker/twake-node/Dockerfile"
|
||||||
tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}"
|
tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}"
|
||||||
|
|||||||
@@ -65,9 +65,9 @@ jobs:
|
|||||||
- name: Publish to Registry
|
- name: Publish to Registry
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
with:
|
with:
|
||||||
name: twaketech/twake-nginx
|
name: twaketech/tdrive-nginx
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
workdir: twake
|
workdir: twake
|
||||||
buildoptions: "-t twaketech/twake-nginx -f docker/twake-nginx/Dockerfile"
|
buildoptions: "-t twaketech/tdrive-nginx -f docker/twake-nginx/Dockerfile"
|
||||||
tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}"
|
tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user