Skip to content

github actions - added docker build and push #5

github actions - added docker build and push

github actions - added docker build and push #5

Workflow file for this run

# https://github.com/marketplace/actions/build-and-push-docker-images
name: docker-build
on:
pull_request:
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 latest
uses: docker/build-push-action@v5
if: github.ref == 'refs/heads/master'
with:
push: true
tags: ccs1/volkszahler-fritzapi:latest
-
name: Build and push PR
uses: docker/build-push-action@v5
with:

Check failure on line 32 in .github/workflows/docker-build.yml

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 32
context: {{defaultContext}}:component/vzlogger/
push: true
tags: ccs1/volkszahler-fritzapi:pr_${{github.event.issue.number}}_${{github.sha}}