Refactor Dockerfile and build.yaml to include CREATED_AT in build args and update label formatting
Some checks failed
Building and publishing Homebrewery as Docker Image / build (release) Failing after 9m49s
Some checks failed
Building and publishing Homebrewery as Docker Image / build (release) Failing after 9m49s
This commit is contained in:
@@ -24,11 +24,6 @@ jobs:
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
path: homebrewery
|
||||
|
||||
- name: Debugging clones
|
||||
run: |
|
||||
ls -la .
|
||||
ls -la homebrewery
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -42,6 +37,10 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Getting build time
|
||||
run: |
|
||||
echo "CREATED_AT=$(date -u --rfc-3339=seconds)" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
@@ -50,6 +49,7 @@ jobs:
|
||||
build-args: |
|
||||
VERSION=${{ github.event.release.tag_name }}
|
||||
REVISION=${{ github.sha }}
|
||||
CREATED_AT=$CREATED_AT
|
||||
tags: |
|
||||
git.morlana.online/${{ github.repository_owner }}/homebrewery:latest
|
||||
git.morlana.online/${{ github.repository_owner }}/homebrewery:${{ github.event.release.tag_name }}
|
||||
|
||||
Reference in New Issue
Block a user