Skip to content

MON-195572 Switch to workflow_dispatch with upstream_ref and image_ta… #5

MON-195572 Switch to workflow_dispatch with upstream_ref and image_ta…

MON-195572 Switch to workflow_dispatch with upstream_ref and image_ta… #5

name: Publish custom cross images

Check failure on line 1 in .github/workflows/publish_cross_images.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish_cross_images.yml

Invalid workflow file

(Line: 17, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.DOCKERHUB_USERNAME != ''
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "build/cross-images/**"
permissions:
contents: read
jobs:
build-cross-images:
# Centreon: skip if DOCKERHUB_USERNAME is not configured in this fork
if: ${{ secrets.DOCKERHUB_USERNAME != '' }}
name: Publish cross images
runs-on: ubuntu-latest
environment:
name: production
steps:
- name: Check out the repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Log in to Docker Hub
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
- name: Build and push cross images
run: make cross-images