Skip to content

Commit a0ed4d3

Browse files
authored
Merge pull request #323 from umccr/docker_ci_split
Split release-plz cargo publishing and docker build and publishing in separate workflows
2 parents 4c261ed + f79cb8e commit a0ed4d3

File tree

2 files changed

+51
-32
lines changed

2 files changed

+51
-32
lines changed

.github/workflows/docker.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: docker
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
docker:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
name: docker
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v3
22+
with:
23+
platforms: linux/amd64,linux/arm64
24+
- name: Login to GHCR.io (GH's Container Registry)
25+
uses: docker/login-action@v3
26+
with:
27+
registry: ghcr.io
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
30+
- name: Docker GitHub release
31+
uses: docker/build-push-action@v6
32+
with:
33+
context: .
34+
file: docker/Dockerfile
35+
provenance: false
36+
platforms: ${{ matrix.platforms }}
37+
push: true
38+
tags: |
39+
ghcr.io/umccr/htsget-rs:latest
40+
41+
## SOCI (Seekable OCI) support. Only enable when and if docker layers surpass 10MB in the future, see:
42+
# https://github.com/awslabs/soci-snapshotter/issues/100
43+
# - name: Install aws SOCI
44+
# uses: iamops-team/aws-soci@v1.0
45+
# - name: Pull the image in containerd
46+
# run: |
47+
# sudo ctr i pull --user ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/umccr/htsget-rs:latest
48+
# - name: Create and push soci index
49+
# run: |
50+
# sudo soci create ghcr.io/umccr/htsget-rs:latest
51+
# sudo soci push --user ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/umccr/htsget-rs:latest

.github/workflows/release.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,3 @@ jobs:
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
CARGO_REGISTRY_TOKEN: ${{ secrets.HTSGET_RS_CRATES_IO_TOKEN }}
27-
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v3
29-
with:
30-
platforms: linux/amd64,linux/arm64
31-
- name: Login to GHCR.io (GH's Container Registry)
32-
uses: docker/login-action@v3
33-
with:
34-
registry: ghcr.io
35-
username: ${{ github.actor }}
36-
password: ${{ secrets.GITHUB_TOKEN }}
37-
- name: Docker GitHub release
38-
uses: docker/build-push-action@v6
39-
with:
40-
context: .
41-
file: docker/Dockerfile
42-
provenance: false
43-
platforms: ${{ matrix.platforms }}
44-
push: true
45-
tags: |
46-
ghcr.io/umccr/htsget-rs:latest
47-
48-
## SOCI (Seekable OCI) support. Only enable when and if docker layers surpass 10MB in the future, see:
49-
# https://github.com/awslabs/soci-snapshotter/issues/100
50-
# - name: Install aws SOCI
51-
# uses: iamops-team/aws-soci@v1.0
52-
# - name: Pull the image in containerd
53-
# run: |
54-
# sudo ctr i pull --user ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/umccr/htsget-rs:latest
55-
# - name: Create and push soci index
56-
# run: |
57-
# sudo soci create ghcr.io/umccr/htsget-rs:latest
58-
# sudo soci push --user ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/umccr/htsget-rs:latest

0 commit comments

Comments
 (0)