Move to Github Registry Containers #165

Merged
Sirherobrine23 merged 7 commits from Docker into main 2021-08-20 17:01:38 +00:00
3 changed files with 20 additions and 11 deletions
Showing only changes of commit eae7ca1c95 - Show all commits

View File

@@ -11,20 +11,27 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: "javascript"
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
Test:
Node:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 15.x, 16.x]
node-version:
- 14.x
- 15.x
- 16.x
steps:
- uses: actions/checkout@v2
@@ -35,14 +42,14 @@ jobs:
- name: Edit Version
env:
RunID: ${{ github.run_id }}
RunID: ${{ github.run_id }}
run: node .github/ChangeVersion.js
- name: Install node depedencies
run: npm install -d --no-save
- name: Run test
run: npm run ci
run: npm test
Docker-Multiarch:
runs-on: ubuntu-latest
@@ -73,4 +80,4 @@ jobs:
platforms: linux/${{ matrix.arch }}
- name: "Run Docker Image, digiest: ${{ steps.DockerArch.outputs.digest }}"
run: docker run --rm -it -e DebugArch="true" coretest:latest@${{ steps.DockerArch.outputs.digest }}
run: docker run --rm -i -e DebugArch="true" coretest:latest@${{ steps.DockerArch.outputs.digest }}

View File

@@ -14,12 +14,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: "javascript"
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
@@ -45,7 +48,7 @@ jobs:
- name: NPM Publish
run: npm publish --tag dev
env:
NODE_AUTH_TOKEN: "${{ secrets.NPM_ORG_TOKEN }}"
NODE_AUTH_TOKEN: '${{ secrets.NPM_ORG_TOKEN }}'
docker_core:
needs: [npm]
@@ -64,7 +67,6 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: checkout
uses: actions/checkout@master

View File

@@ -73,8 +73,9 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_ORG_USER }}
password: ${{ secrets.DOCKER_ORG_PASS }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: checkout
uses: actions/checkout@master
@@ -85,6 +86,5 @@ jobs:
with:
push: true
target: bdsbase
tags: |
ghcr.io/the-bds-maneger/base:latest
tags: ghcr.io/the-bds-maneger/base:latest
platforms: ${{ env.DOCKER_ARCH }}