Skip to content

Commit 2818e97

Browse files
authored
Merge pull request #80 from umccr/gha_update
GitHub Actions Updates
2 parents ec2c617 + 268f982 commit 2818e97

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/deploy.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ jobs:
2424

2525
steps:
2626
- name: Code checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828
- name: Micromamba setup
2929
uses: mamba-org/setup-micromamba@v1
3030
with:
31-
micromamba-version: '1.4.9-0'
3231
environment-file: ${{ env.env_yaml_path }}/condabuild.yaml
3332
- name: 🐍 Conda pkg build and upload
3433
run: |
@@ -37,8 +36,9 @@ jobs:
3736
conda mambabuild --R 4.2 ${recipe_path} --token ${atoken}
3837
- name: 🔒 Conda lock
3938
run: |
40-
conda-lock --file ${env_yaml_path}/gpgr.yaml --platform linux-64
41-
mv conda-lock.yml ${env_lock_path}/conda-lock.yml
39+
conda-lock lock --file ${env_yaml_path}/gpgr.yaml --platform linux-64
40+
conda-lock render --kind explicit -p linux-64 conda-lock.yml --filename-template 'gpgr-{platform}.lock' && rm conda-lock.yml
41+
mv gpgr-*.lock ${env_lock_path}/
4242
- name: 💾 Commit lockfile
4343
run: |
4444
# TODO: the version bumping guarantees there will be changes,
@@ -67,7 +67,7 @@ jobs:
6767
LATEST_COMMIT_HASH="$(git --no-pager log -1 --format='%H')"
6868
echo "latest_commit_hash=${LATEST_COMMIT_HASH}" >> $GITHUB_OUTPUT
6969
- name: 🔖 Create tag
70-
uses: actions/github-script@v6
70+
uses: actions/github-script@v7
7171
env:
7272
LATEST_COMMIT_HASH: ${{ steps.pull_lock_commit.outputs.latest_commit_hash }}
7373
with:
@@ -83,26 +83,26 @@ jobs:
8383
8484
# work with tag from above
8585
- name: Code checkout
86-
uses: actions/checkout@v3
86+
uses: actions/checkout@v4
8787
with:
8888
ref: v${{ env.VERSION }}
8989
- name: 🏰 QEMU setup
90-
uses: docker/setup-qemu-action@v2
90+
uses: docker/setup-qemu-action@v3
9191
- name: 🏯 Buildx setup
92-
uses: docker/setup-buildx-action@v2
92+
uses: docker/setup-buildx-action@v3
9393
with:
9494
install: true
9595
config-inline: |
9696
[worker.oci]
9797
max-parallelism = 2
9898
- name: 🐙 GitHub CR login
99-
uses: docker/login-action@v2
99+
uses: docker/login-action@v3
100100
with:
101101
registry: ghcr.io
102102
username: ${{ github.actor }}
103103
password: ${{ secrets.GITHUB_TOKEN }}
104104
- name: 🐳 Docker img build and push
105-
uses: docker/build-push-action@v4
105+
uses: docker/build-push-action@v5
106106
with:
107107
tags: ghcr.io/${{ github.repository }}:${{ env.VERSION }}
108108
context: . # yes, dot

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ubuntu:20.04
22
LABEL maintainer="https://github.com/pdiakumis"
33

4-
ARG MINI_VERSION=4.12.0-0
4+
ARG MINI_VERSION=24.3.0-0
55
ARG MINI_URL=https://github.com/conda-forge/miniforge/releases/download/${MINI_VERSION}/Mambaforge-${MINI_VERSION}-Linux-x86_64.sh
66
ARG MAMBA_PREFIX="/opt/mambaforge"
77

@@ -22,8 +22,8 @@ ARG ENV_DIR=/home/gpgr_conda_env
2222
ARG ENV_NAME="gpgr_env"
2323
COPY ./conda/env/lock ${ENV_DIR}
2424
RUN conda config --set always_yes yes && \
25-
mamba install -c conda-forge conda-lock==1.0.5
26-
RUN conda-lock install --name ${ENV_NAME} ${ENV_DIR}/conda-lock.yml && \
25+
mamba install -c conda-forge conda-lock
26+
RUN conda-lock install --name ${ENV_NAME} ${ENV_DIR}/gpgr-linux-64.lock && \
2727
mamba clean --all --force-pkgs-dirs
2828

2929
ENV PATH="${MAMBA_PREFIX}/envs/${ENV_NAME}/bin:${PATH}"

0 commit comments

Comments
 (0)