Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .github/workflows/build-image-prod.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Docker Build and Push - Dev
name: Build and publish image

on:
workflow_dispatch:
push:
branches: ["main"]
tags: ["v*"]

permissions:
contents: read
Expand All @@ -12,12 +13,17 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Create tag name
run: echo "tag=dev-$(date +'%Y-%m-%dT%H-%M-%S')_$GITHUB_SHA" >> $GITHUB_ENV
- name: Resolve image tag
id: tag
run: |
if [[ "${{ github.ref_type }}" == "tag" ]]; then
echo "value=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
else
echo "value=$(date +'%Y-%m-%dT%H-%M-%S')_${GITHUB_SHA}" >> "$GITHUB_OUTPUT"
fi

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -35,6 +41,6 @@ jobs:
context: .
platforms: linux/arm64,linux/amd64
push: true
tags: ghcr.io/nudgebee/nova:${{ env.tag }}
tags: ghcr.io/nudgebee/nova:${{ steps.tag.outputs.value }}
build-args: |
BUILDKIT_INLINE_CACHE=1
Loading