Skip to content

Commit

Permalink
YDA-5308: implement Docker build action in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
stsnel committed Aug 8, 2023
1 parent 5895abf commit 28dd176
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-push-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: "Build image and push it to registry"

on:
push:
branches:
- 'development'

jobs:
push-image:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Check out Yoda repository
uses: actions/checkout@v3
with:
path: yoda
repository: UtrechtUniversity/yoda
ref: development

- name: Authenticate to the container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: yoda/docker/images/yoda_eus
file: yoda/docker/images/yoda_eus/Dockerfile
push: true
tags: ghcr.io/utrechtuniversity/yoda-eus:dev-1.9

0 comments on commit 28dd176

Please sign in to comment.