mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-11-20 21:04:55 +00:00
update docker
This commit is contained in:
18
.github/workflows/dockerpublish.yml
vendored
18
.github/workflows/dockerpublish.yml
vendored
@@ -17,25 +17,7 @@ env:
|
|||||||
IMAGE_NAME: wlan-cloud-ui
|
IMAGE_NAME: wlan-cloud-ui
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Run tests.
|
|
||||||
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
if [ -f docker-compose.test.yml ]; then
|
|
||||||
docker-compose --file docker-compose.test.yml build
|
|
||||||
docker-compose --file docker-compose.test.yml run sut
|
|
||||||
else
|
|
||||||
docker build --build-arg NPM_TOKEN=${{secrets.NPM_REPO_AUTH_TOKEN}} .
|
|
||||||
fi
|
|
||||||
push:
|
push:
|
||||||
# Ensure test job passes before pushing image.
|
|
||||||
needs: test
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ COPY package*.json ./
|
|||||||
|
|
||||||
#RUN npm install
|
#RUN npm install
|
||||||
# If you are building your code for production
|
# If you are building your code for production
|
||||||
RUN (echo "@tip-wlan:registry=https://tip.jfrog.io/artifactory/api/npm/tip-wlan-cloud-npm-repo/" && echo "//tip.jfrog.io/artifactory/api/npm/tip-wlan-cloud-npm-repo/:_authToken=$NPM_TOKEN" && echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN") > .npmrc
|
RUN (echo "@tip-wlan:registry=https://tip.jfrog.io/artifactory/api/npm/tip-wlan-cloud-npm-repo/" && echo "//tip.jfrog.io/artifactory/api/npm/tip-wlan-cloud-npm-repo/:_authToken=$NPM_TOKEN") > .npmrc
|
||||||
RUN npm ci --only=production
|
RUN npm ci --only=production
|
||||||
RUN rm -f .npmrc
|
RUN rm -f .npmrc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user