Skip to content
Draft
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
17 changes: 16 additions & 1 deletion .github/workflows/build-sealed-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ on:
required: false
type: boolean
default: true
nexus-name:
description: The "project" name for an additional push to the internal Nexus docker container
required: false
type: string
default: ''
secrets:
CI_GITHUB_TOKEN:
required: true
Expand Down Expand Up @@ -121,14 +126,24 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.CI_GITHUB_TOKEN }}

- name: Login to Nexus Container Registry
if: ${{ inputs.nexus-name != '' }}
uses: docker/login-action@v3
with:
registry: ${{ secrets.NEXUS_DOCKER_REPO }}
username: ${{ github.actor }}
password: ${{ secrets.CI_GITHUB_TOKEN }}

# Priority sorting determines the tag used in the OCI label
# The current order preferences the version, then commit, then any special tags
# We always push a commit based tag
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_URL }}
images: |
name=${{ env.REGISTRY_URL }},enable=true
name=${{ secrets.NEXUS_DOCKER_REPO }}/${{ inputs.nexus-name }},enable=${{ inputs.nexus-name != '' }}
labels: |
org.opencontainers.image.vendor=Zepben
tags: |
Expand Down