mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-07-16 20:31:50 -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:
|
release:
|
||||||
types: [ published ]
|
types: [ published ]
|
||||||
|
|
||||||
permissions:
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: [check-token]
|
||||||
|
if: needs.check-token.outputs.token_defined == 'true'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -36,7 +46,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.MY_TOKEN }}
|
||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
@ -60,6 +70,8 @@ jobs:
|
|||||||
INCLUDE_MONGODB_TOOLS=true
|
INCLUDE_MONGODB_TOOLS=true
|
||||||
INCLUDE_POSTGRESQL_TOOLS=true
|
INCLUDE_POSTGRESQL_TOOLS=true
|
||||||
INCLUDE_MARIADB_TOOLS=true
|
INCLUDE_MARIADB_TOOLS=true
|
||||||
|
DISABLE_MINIFY=no
|
||||||
|
DISABLE_TRANSLATE=no
|
||||||
PREINSTALL_LIBS=true
|
PREINSTALL_LIBS=true
|
||||||
|
|
||||||
#- name: Docker Scout
|
#- name: Docker Scout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user