Skip to content

Commit

Permalink
ci: set docker run name to namespace/image:tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Oct 23, 2024
1 parent 0d2fb11 commit 59994f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-docker-manual.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: build-docker-manual

run-name: ${{ inputs.namespace }}/${{ inputs.image_name }}:${{ inputs.version }}

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -39,8 +41,8 @@ jobs:
- name: Prepare build-time variables
id: vars
run: |
echo "CONTEXT=$(dirname ${{ github.event.inputs.dockerfile }})" >> "$GITHUB_OUTPUT"
echo "DATE=$(date +"%Y-%m-%d")" >> "$GITHUB_OUTPUT"
echo "CONTEXT=$(dirname ${{ github.event.inputs.dockerfile }})" >> "$GITHUB_OUTPUT"
echo "DATE=$(date +"%Y-%m-%d")" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v4
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-docker-meta.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: build-docker-meta

run-name: ${{ inputs.context_dir }}

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -31,7 +33,7 @@ jobs:
- name: Prepare build-time variables
id: vars
run: |
echo "DATE=$(date +"%Y-%m-%d")" >> "$GITHUB_OUTPUT"
echo "DATE=$(date +"%Y-%m-%d")" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v4
# only try building & pushing the container if parsing the metadata worked
Expand Down

0 comments on commit 59994f2

Please sign in to comment.