Skip to content

Align rebuilt web tests with current mainline #4

Align rebuilt web tests with current mainline

Align rebuilt web tests with current mainline #4

Workflow file for this run

name: Docker Publish

Check failure on line 1 in .github/workflows/docker-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-publish.yml

Invalid workflow file

(Line: 11, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != ''
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
if: ${{ secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: involute-server
target: server
- image: involute-web
target: web
- image: involute-cli
target: cli
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
target: ${{ matrix.target }}
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image }}:latest
${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image }}:sha-${{ github.sha }}