Skip to content

Merge pull request #37 from elraro/docker-build #23

Merge pull request #37 from elraro/docker-build

Merge pull request #37 from elraro/docker-build #23

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Docker Build Action
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
context: .
tags: ${{ env.REGISTRY }}/${{ github.repository }}:latest