build: Bash

This commit is contained in:
Kroese 2023-11-29 08:51:52 +01:00 committed by GitHub
parent c1714f9e6b
commit 87ee25d404

View File

@ -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 }}"
@ -77,7 +78,7 @@ jobs:
LABELS+=("org.opencontainers.image.version=${VERSION}") LABELS+=("org.opencontainers.image.version=${VERSION}")
LABELS+=("org.opencontainers.image.created=${BUILD_DATE}") LABELS+=("org.opencontainers.image.created=${BUILD_DATE}")
LABELS+=("org.opencontainers.image.revision=${GITHUB_RUN_ID}") LABELS+=("org.opencontainers.image.revision=${GITHUB_RUN_ID}")
LABELS+=("org.opencontainers.image.url=https://hub.docker.com/r/${{ secrets.DOCKERHUB_REPO }}") LABELS+=("org.opencontainers.image.url=https://hub.docker.com/r/${{ github.repository }}")
LABELS+=("org.opencontainers.image.source=https://github.com/${{ github.repository }}") LABELS+=("org.opencontainers.image.source=https://github.com/${{ github.repository }}")
docker buildx build --progress=plain \ docker buildx build --progress=plain \