Skip to content

Docker: Build and push to Docker Hub #4

Docker: Build and push to Docker Hub

Docker: Build and push to Docker Hub #4

Workflow file for this run

name: Docker Image CI
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: "sipgategmbh/li-simulator-x1x2x3:latest,sipgategmbh/li-simulator-x1x2x3:${{ GITHUB_RUN_NUMBER }}-${{ GITHUB_SHA }}"

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

View workflow run for this annotation

GitHub Actions / Docker Image CI

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 25, Col: 17): Unrecognized named-value: 'GITHUB_RUN_NUMBER'. Located at position 1 within expression: GITHUB_RUN_NUMBER