test docker auto build #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
apptainer remote add SylabsCloud cloud.sycloud.io | |
ls -l ~/.apptainer | |
apptainer remote list | |
apptainer remote status | |
apptainer push -D "For testing" -U test.sif library://${{ vars.SYLABS_USERNAME }}/r3bdev/r3broot:test | |
shell: bash | |
env: | |
APPTAINER_LOGIN_PASSWORD: ${{ secrets.SYLABS_TOKEN }} |