Merge pull request #279 from umccr/docs/simplify #134
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: release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release-plz | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run release-plz | |
uses: MarcoIeni/release-plz-action@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CARGO_REGISTRY_TOKEN: ${{ secrets.HTSGET_RS_CRATES_IO_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
- name: Login to GHCR.io (GH's Container Registry) | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker GitHub release | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: deploy/Dockerfile | |
platforms: ${{ matrix.platforms }} | |
push: true | |
tags: | | |
ghcr.io/umccr/htsget-rs:latest | |
## SOCI (Seekable OCI) support. Only enable when and if docker layers surpass 10MB in the future, see: | |
# https://github.com/awslabs/soci-snapshotter/issues/100 | |
# - name: Install aws SOCI | |
# uses: iamops-team/[email protected] | |
# - name: Pull the image in containerd | |
# run: | | |
# sudo ctr i pull --user ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/umccr/htsget-rs:latest | |
# - name: Create and push soci index | |
# run: | | |
# sudo soci create ghcr.io/umccr/htsget-rs:latest | |
# sudo soci push --user ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/umccr/htsget-rs:latest |