Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: docker tag manuel trigger #1744

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 2 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
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish Lava Release
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+.*
- v[0-9]+.[0-9]+.[0-9]+.*
workflow_dispatch:
inputs:
release_tag:
Expand Down Expand Up @@ -79,8 +79,22 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push (Manual)
uses: docker/build-push-action@v5
if: ${{ github.event.inputs.release_tag != ''}}
with:
tags: |
type=raw,value=${{ github.event.inputs.release_tag }},enable=true
labels: ${{ steps.meta.outputs.labels }}
file: cmd/${{ matrix.binary }}/Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
GIT_VERSION="${{ steps.meta.outputs.version }}"
GIT_COMMIT="${{ github.sha }}"
push: true
- name: Build and push
uses: docker/build-push-action@v5
if: ${{ github.event.inputs.release_tag == ''}}
with:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
Loading