Skip to content

Docker

Docker #35

Workflow file for this run

---
name: Docker
on:
push:
branches:
- main
paths:
- build/Dockerfile
pull_request:
branches:
- main
paths:
- build/Dockerfile
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- name: Login to Github Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker image
uses: docker/build-push-action@v2
with:
context: build
push: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
tags: ghcr.io/gdatasoftwareag/vmi-build:latest