Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Merge pull request #2 from ssl-leiden/code-updates #19

Merge pull request #2 from ssl-leiden/code-updates

Merge pull request #2 from ssl-leiden/code-updates #19

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: DockerImageBuild
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/app
IMAGE_TAG: latest
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout repository
id: docker_checkout
uses: actions/checkout@v3
- name: Log in to the Container registry
id: docker_login
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: ./
file: ./Dockerfile
target: app
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}