Skip to content

Adding dockerfile and github action #1

Adding dockerfile and github action

Adding dockerfile and github action #1

name: docker
on:
push:
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
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:

Check failure on line 27 in .github/workflows/docker_build_and_push.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker_build_and_push.yml

Invalid workflow file

You have an error in your yaml syntax on line 27
push: true
tags: {{ github.event.repository.name }}:latest