build: Bash
This commit is contained in:
parent
873e59cdb7
commit
96a136e3db
1 changed files with 8 additions and 7 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
@ -12,7 +12,7 @@ on:
|
||||||
- '.dockerignore'
|
- '.dockerignore'
|
||||||
- '.github/**'
|
- '.github/**'
|
||||||
- '.github/workflows/**'
|
- '.github/workflows/**'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: build
|
group: build
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
@ -34,7 +34,7 @@ jobs:
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
@ -54,8 +54,9 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Build Docker image
|
name: Build Docker image
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
DIRECTORY="."
|
DIRECTORY="."
|
||||||
PLATFORMS="linux/amd64,linux/arm64"
|
PLATFORMS="linux/amd64,linux/arm64"
|
||||||
VERSION="${{ vars.MAJOR }}.${{ vars.MINOR }}"
|
VERSION="${{ vars.MAJOR }}.${{ vars.MINOR }}"
|
||||||
|
@ -88,8 +89,8 @@ jobs:
|
||||||
$(printf '%s' "${LABELS[@]/#/ --label }" ) \
|
$(printf '%s' "${LABELS[@]/#/ --label }" ) \
|
||||||
$(printf '%s' "${LABELS[@]/#/ --annotation }" ) \
|
$(printf '%s' "${LABELS[@]/#/ --annotation }" ) \
|
||||||
$(printf '%s' "${TAGS[@]/#/ --tag }" ) "${DIRECTORY}"
|
$(printf '%s' "${TAGS[@]/#/ --tag }" ) "${DIRECTORY}"
|
||||||
|
|
||||||
rm -f ${HOME}/.docker/config.json
|
rm -f ${HOME}/.docker/config.json
|
||||||
-
|
-
|
||||||
name: Create a release
|
name: Create a release
|
||||||
uses: action-pack/github-release@v2
|
uses: action-pack/github-release@v2
|
||||||
|
@ -109,4 +110,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
url: ${{ secrets.GITLAB_URL }}
|
url: ${{ secrets.GITLAB_URL }}
|
||||||
token: ${{ secrets.GITLAB_TOKEN }}
|
token: ${{ secrets.GITLAB_TOKEN }}
|
||||||
username: ${{ secrets.GITLAB_USERNAME }}
|
username: ${{ secrets.GITLAB_USERNAME }}
|
||||||
|
|
Loading…
Reference in a new issue