-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (39 loc) · 1.5 KB
/
Copy pathpublish-develop-image.yml
File metadata and controls
41 lines (39 loc) · 1.5 KB
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
name: Build and publish a container image for the 'develop' branch
on:
push:
branches:
- develop
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Build containers
run: cd deployment/containers && make dev-build
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push images
run: |
components=(
server
domo
connector-osf
connector-zenodo
connector-datasafe
connector-datastore
connector-dataverse
connector-stub
frontend
)
for comp in "${components[@]}"; do
IMAGE_ID=ghcr.io/sciebo-rds/rds-ng-$comp
VERSION=develop
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag docker.io/rds-ng/$comp:develop $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
done