-
Notifications
You must be signed in to change notification settings - Fork 27
45 lines (40 loc) · 1.11 KB
/
build-push-image-public.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
name: "Build public web server image and push it to registry"
on:
push:
branches:
- 'development'
- 'ci-test'
paths:
- 'docker/images/yoda_public/**'
- 'roles/yoda_landingpages/files/**'
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: Stage landing page files for Docker image
run: |
cd yoda/docker/images/yoda_public
./stage-uploads.sh
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: yoda/docker/images/yoda_public
file: yoda/docker/images/yoda_public/Dockerfile
push: true
tags: ghcr.io/utrechtuniversity/yoda-public:dev-1.9