mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-07-16 04:11:49 -04:00
restore old docker workflow for now
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
parent
8f70820629
commit
653074c5f4
20
.github/workflows/docker.yml
vendored
20
.github/workflows/docker.yml
vendored
@ -6,17 +6,27 @@ on:
|
||||
release:
|
||||
types: [ published ]
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
check-token:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
token_defined: ${{ steps.token_check.outputs.token_defined }}
|
||||
steps:
|
||||
- name: Check token
|
||||
id: token_check
|
||||
env:
|
||||
MY_TOKEN: ${{ secrets.MY_TOKEN }}
|
||||
if: "${{ env.MY_TOKEN != '' }}"
|
||||
run: echo "token_defined=true" >> "$GITHUB_OUTPUT"
|
||||
build:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
needs: [check-token]
|
||||
if: needs.check-token.outputs.token_defined == 'true'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@ -36,7 +46,7 @@ jobs:
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
password: ${{ secrets.MY_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
@ -60,6 +70,8 @@ jobs:
|
||||
INCLUDE_MONGODB_TOOLS=true
|
||||
INCLUDE_POSTGRESQL_TOOLS=true
|
||||
INCLUDE_MARIADB_TOOLS=true
|
||||
DISABLE_MINIFY=no
|
||||
DISABLE_TRANSLATE=no
|
||||
PREINSTALL_LIBS=true
|
||||
|
||||
#- name: Docker Scout
|
||||
|
Loading…
x
Reference in New Issue
Block a user