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: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v1 uses: github/codeql-action/init@v1
with: with:
languages: "javascript" languages: "javascript"
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v1 uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1 uses: github/codeql-action/analyze@v1
Test: Node:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [14.x, 15.x, 16.x] node-version:
- 14.x
- 15.x
- 16.x
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -35,14 +42,14 @@ jobs:
- name: Edit Version - name: Edit Version
env: env:
RunID: ${{ github.run_id }} RunID: ${{ github.run_id }}
run: node .github/ChangeVersion.js run: node .github/ChangeVersion.js
- name: Install node depedencies - name: Install node depedencies
run: npm install -d --no-save run: npm install -d --no-save
- name: Run test - name: Run test
run: npm run ci run: npm test
Docker-Multiarch: Docker-Multiarch:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -73,4 +80,4 @@ jobs:
platforms: linux/${{ matrix.arch }} platforms: linux/${{ matrix.arch }}
- name: "Run Docker Image, digiest: ${{ steps.DockerArch.outputs.digest }}" - 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: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v1 uses: github/codeql-action/init@v1
with: with:
languages: "javascript" languages: "javascript"
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v1 uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1 uses: github/codeql-action/analyze@v1
@@ -45,7 +48,7 @@ jobs:
- name: NPM Publish - name: NPM Publish
run: npm publish --tag dev run: npm publish --tag dev
env: env:
NODE_AUTH_TOKEN: "${{ secrets.NPM_ORG_TOKEN }}" NODE_AUTH_TOKEN: '${{ secrets.NPM_ORG_TOKEN }}'
docker_core: docker_core:
needs: [npm] needs: [npm]
@@ -64,7 +67,6 @@ jobs:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: checkout - name: checkout
uses: actions/checkout@master uses: actions/checkout@master

View File

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