Skip to content

ci: docker build and push #2

ci: docker build and push

ci: docker build and push #2

Workflow file for this run

name: docker
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
id: docker_login
if: github.event_name != 'pull_request' && secrets.DOCKERHUB_USERNAME && secrets.DOCKERHUB_TOKEN

Check failure on line 25 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / docker

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 25, Col: 13): Unrecognized named-value: 'secrets'. Located at position 40 within expression: github.event_name != 'pull_request' && secrets.DOCKERHUB_USERNAME && secrets.DOCKERHUB_TOKEN
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: push
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' && steps.docker_login.outcome == 'success' }}
tags: 0xpolygon/panoptichain:${{ github.ref_type == 'tag' && github.ref_name || 'latest' }}
platforms: linux/amd64,linux/arm64