mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-06-27 09:12:43 +02:00
Add args during build (#607)
This commit is contained in:
parent
297228692c
commit
986b055e11
4 changed files with 21 additions and 1 deletions
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
|
@ -25,6 +25,8 @@ jobs:
|
|||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Cache Docker layers
|
||||
# AWS data transfer is pricy
|
||||
if: ${{ matrix.runner-platform != 'self-hosted' }}
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
|
@ -38,6 +40,10 @@ jobs:
|
|||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Get current time
|
||||
uses: josStorer/get-current-time@v2
|
||||
id: current-time
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
|
@ -47,6 +53,9 @@ jobs:
|
|||
platforms: ${{ matrix.build-arch }}
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache,mode=min
|
||||
build-args: |
|
||||
COMMIT_HASH=${{ github.sha }}
|
||||
BUILD_DATE=${{ steps.current-time.outputs.time }}
|
||||
|
||||
combine:
|
||||
name: Combine platform tags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue