Skip to content

Commit

Permalink
ci: adds sudo (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyoung84 authored Mar 18, 2024
1 parent e91f683 commit 5b27e43
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tag_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ jobs:
id: go
- name: Install Dependencies
run: |
apt-get update && apt-get install -y \
run: |
sudo apt-get update && sudo apt-get install -y \
build-essential \
libssl-dev \
uuid-dev \
Expand All @@ -91,19 +92,19 @@ jobs:
GOPATH: /tmp/go
run: |
mkdir -p $GOPATH
mkdir -p /usr/local/var/singularity/mnt && \
sudo mkdir -p /usr/local/var/singularity/mnt && \
mkdir -p $GOPATH/src/github.com/sylabs && \
cd $GOPATH/src/github.com/sylabs && \
wget -qO- https://github.com/sylabs/singularity/releases/download/v${SINGULARITY_VERSION}/singularity-ce-${SINGULARITY_VERSION}.tar.gz | \
tar xzv && \
cd singularity-ce-${SINGULARITY_VERSION} && \
./mconfig -p /usr/local && \
make -C builddir && \
make -C builddir install
sudo make -C builddir install
- name: Build sif container
run: |
mkdir aind-data-transformation/build
singularity build aind-data-transformation/build/container.sif aind-data-transformation/scripts/singularity_build.def
sudo singularity build aind-data-transformation/build/container.sif aind-data-transformation/scripts/singularity_build.def
- name: Login and Deploy Container
run: |
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ github.actor }} --password-stdin oras://ghcr.io
Expand Down

0 comments on commit 5b27e43

Please sign in to comment.