Skip to content

update command

update command #90

Workflow file for this run

name: Upload Release Tarball and Container
on:
push:
tags:
- '*' # Push events of any tag created
jobs:
build_versioned_containers:
name: Build/Push container
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
strategy:
matrix:
env: [align, assembly, deconvolution, demultiplex, metassembly, phase, qc, report, simulations, stitch, variants]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Harpy
uses: prefix-dev/setup-pixi@v0.9.4
with:
pixi-version: v0.62.0
cache: false
activate-environment: true
- name: Clear space
run: rm -rf /opt/hostedtoolcache
# - name: Clear Space
# uses: jlumbroso/free-disk-space@main
- name: Recreate containers
run: harpy containerize ${{ matrix.env }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: container/${{ matrix.env }}
push: true
tags: pdimens/harpy:$${{ matrix.env }}_{{ github.ref_name }}
build_tarball:
needs: build_versioned_containers
name: Upload Release Tarball
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build project
# This builds the release tarball, stripped of unneccessary things
run: |
mkdir artifacts
tar --exclude="test" --exclude=".deprecated" --exclude="resources" --exclude="artifacts" --exclude=".git" --exclude=".github" -zcvf artifacts/harpy.${{ github.ref_name }}.tar.gz .
- name: Create Release with Assets
uses: softprops/action-gh-release@v2
with:
files: ./artifacts/harpy.${{ github.ref_name }}.tar.gz