forked from R3BRootGroup/R3BRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.18 KB
/
container_deploy.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
name: deploy-container
on:
push:
branches: [ neuland_new_calibration ]
workflow_dispatch:
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ vars.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Build and push
# uses: docker/build-push-action@v6
# with:
# push: true
# context: util/container
# tags: ${{ vars.DOCKER_USERNAME }}/r3bdev:test
- name: build apptainer
run: |
sudo add-apt-repository -y ppa:apptainer/ppa
sudo apt-get update
sudo apt-get install -y apptainer
# sudo apptainer build --notest test.sif ./util/container/test.def
sudo apptainer remote add --no-login SylabsCloud cloud.sycloud.io
apptainer remote login -p ${{ secrets.SYLABS_TOKEN }} SylabsCloud
apptainer remote list
apptainer push -D "For testing" -U test.sif library://${{ vars.SYLABS_USERNAME }}/r3bdev/r3broot:test