Skip to content

Commit

Permalink
Update docker-multiarch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder authored Mar 11, 2024
1 parent ea8abe3 commit a30beac
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/docker-multiarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches: [ "main" ]
workflow_dispatch:
inputs:
tagName:
description: 'Tag Name'
required: true
default: 'latest'

jobs:
build:
Expand Down Expand Up @@ -39,12 +44,25 @@ jobs:
push: false
tags: ghcr.io/loxilb-io/loxilb:latest

- name: Build and push
- name: Build and push to latest
if: |
github.repository == 'loxilb-io/loxilb'
github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
tags: ghcr.io/loxilb-io/loxilb:latest

- name: Build and push to given tag
if: |
github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName != ''
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
tags: ghcr.io/loxilb-io/loxilb:${{ github.event.inputs.tagName }}

0 comments on commit a30beac

Please sign in to comment.