Skip to content

create github action to build docker image #1

create github action to build docker image

create github action to build docker image #1

Workflow file for this run

name: Build Docker Container
on:
push:
branches:
- main
- staging
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: devkba/cake2-app-template:${{ GITHUB_REF_NAME }}

Check failure on line 30 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build Docker Container

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 30, Col: 27): Unrecognized named-value: 'GITHUB_REF_NAME'. Located at position 1 within expression: GITHUB_REF_NAME