restore old docker workflow for now
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
Simon Smith committed
Jun 3, 2025 at 22:59 UTC
653074c5f40aa384cfff29c2a64b3c8d7dbe079c
1 file changed
+16
-4
.github/workflows/docker.yml
+16
-4
@@ -6,17 +6,27 @@ on:
6
release:
7
types: [ published ]
8
9
-permissions:
10
- packages: write
11
-
9
env:
10
REGISTRY: ghcr.io
11
IMAGE_NAME: ${{ github.repository }}
12
13
jobs:
14
+ check-token:
15
+ runs-on: ubuntu-latest
16
+ outputs:
17
+ token_defined: ${{ steps.token_check.outputs.token_defined }}
18
+ steps:
19
+ - name: Check token
20
+ id: token_check
21
+ env:
22
+ MY_TOKEN: ${{ secrets.MY_TOKEN }}
23
+ if: "${{ env.MY_TOKEN != '' }}"
24
+ run: echo "token_defined=true" >> "$GITHUB_OUTPUT"
25
build:
26
name: Release
27
runs-on: ubuntu-latest
28
+ needs: [check-token]
29
+ if: needs.check-token.outputs.token_defined == 'true'
30
steps:
31
- name: Checkout
32
uses: actions/checkout@v4
@@ -36,7 +46,7 @@ jobs:
46
with:
47
registry: ${{ env.REGISTRY }}
48
username: ${{ github.repository_owner }}
39
- password: ${{ secrets.GITHUB_TOKEN }}
49
+ password: ${{ secrets.MY_TOKEN }}
50
51
- name: Extract metadata (tags, labels) for Docker
52
id: meta
@@ -60,6 +70,8 @@ jobs:
70
INCLUDE_MONGODB_TOOLS=true
71
INCLUDE_POSTGRESQL_TOOLS=true
72
INCLUDE_MARIADB_TOOLS=true
73
+ DISABLE_MINIFY=no
74
+ DISABLE_TRANSLATE=no
75
PREINSTALL_LIBS=true
76
77
#- name: Docker Scout