-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (34 loc) · 1.28 KB
/
build-and-push-ricgraph-container.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
name: Build and push Podman container for Ricgraph
on:
workflow_dispatch: # Allows manual triggering of the workflow
env:
REGISTRY: ghcr.io/utrechtuniversity
RICGRAPH_VERSION: 2.7
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: redhat-actions/podman-login@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ${{ env.REGISTRY }}
- name: Check current directory and files
run: |
pwd
ls -la
echo "Ricgraph registry: $REGISTRY"
echo "Ricgraph version: $RICGRAPH_VERSION"
- name: Build Podman container for Ricgraph
run: |
podman build -f Containerfile -t ${{ env.REGISTRY }}/ricgraph:${{ env.RICGRAPH_VERSION }} .
- name: Update 'latest' tag for Podman container for Ricgraph
run: |
podman tag ${{ env.REGISTRY }}/ricgraph:${{ env.RICGRAPH_VERSION }} ${{ env.REGISTRY }}/ricgraph:latest
- name: Push Podman containers for Ricgraph
run: |
podman push ${{ env.REGISTRY }}/ricgraph:${{ env.RICGRAPH_VERSION }}
podman push ${{ env.REGISTRY }}/ricgraph:latest