-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.51 KB
/
run-bedrock-connect_docker-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Bedrock-connect Build image
on:
workflow_dispatch:
push:
branches:
- main
paths:
- ".github/workflows/run-bedrock-connect_docker-build.yaml"
- "unraid-homelab/tools/minecraft/bedrock-connect/*"
env:
ORG_ACCOUNT: "zaggash"
IMAGE_NAME: "bedrock-connect"
CONTEXT: "./unraid-homelab/tools/minecraft/bedrock-connect/"
DOCKERFILE: "./unraid-homelab/tools/minecraft/bedrock-connect/Dockerfile"
jobs:
extract-tag:
name: Extract Application Tag
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- name: Get Bedrock-connect version
run: |
TAG=$(grep -Po 'CONNECT=\K.*' ${{ env.DOCKERFILE }} )
echo "TAG_ENV=$TAG" >> $GITHUB_ENV
outputs:
org-account: ${{ env.ORG_ACCOUNT }}
image-name: ${{ env.IMAGE_NAME }}
tag: ${{ env.TAG_ENV }}
context: ${{ env.CONTEXT }}
dockerfile: ${{ env.DOCKERFILE}}
build-push:
name: Build & Push
needs: extract-tag
uses: zaggash/gh-workflows/.github/workflows/action_docker-build-repo.yaml@main
with:
github-account: ${{ needs.extract-tag.outputs.org-account }}
image-name: ${{ needs.extract-tag.outputs.image-name }}
tag: ${{ needs.extract-tag.outputs.tag }}
context: ${{ needs.extract-tag.outputs.context }}
dockerfile: ${{ needs.extract-tag.outputs.dockerfile }}
secrets:
gh_username: ${{ secrets.GH_USERNAME }}
gh_token: ${{ secrets.GH_TOKEN }}