Skip to content

Commit e4aacf8

Browse files
committed
Update docker tags in workflow
1 parent 0690665 commit e4aacf8

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/docker.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v4
1616

17+
- name: Get sbx version
18+
shell: bash
19+
run: |
20+
SBX_VER=$(cat VERSION)
21+
echo "SBX_VER=$SBX_VER" >> $GITHUB_ENV
22+
1723
- name: Log in to Docker Hub
1824
uses: docker/login-action@v3
1925
with:
@@ -32,7 +38,7 @@ jobs:
3238
context: .
3339
file: envs/cenote_taker_env.Dockerfile
3440
push: true
35-
tags: ${{ steps.meta.outputs.tags }}-cenote-taker
41+
tags: ${{ env.SBX_VER }}-cenote-taker
3642
labels: ${{ steps.meta.outputs.labels }}
3743

3844
- name: Build and push Docker image for sbx_virus_id
@@ -41,7 +47,7 @@ jobs:
4147
context: .
4248
file: envs/sbx_virus_id.Dockerfile
4349
push: true
44-
tags: ${{ steps.meta.outputs.tags }}-sbx-virus-id
50+
tags: ${{ env.SBX_VER }}-sbx-virus-id
4551
labels: ${{ steps.meta.outputs.labels }}
4652

4753
- name: Build and push Docker image for spades
@@ -50,7 +56,7 @@ jobs:
5056
context: .
5157
file: envs/spades_env.Dockerfile
5258
push: true
53-
tags: ${{ steps.meta.outputs.tags }}-spades
59+
tags: ${{ env.SBX_VER }}-spades
5460
labels: ${{ steps.meta.outputs.labels }}
5561

5662
- name: Build and push Docker image for virsorter
@@ -59,5 +65,5 @@ jobs:
5965
context: .
6066
file: envs/virsorter_env.Dockerfile
6167
push: true
62-
tags: ${{ steps.meta.outputs.tags }}-virsorter
68+
tags: ${{ env.SBX_VER }}-virsorter
6369
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/pr.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
pull_request:
55
branches:
66
- main
7-
push:
8-
branches:
9-
- main
107

118
jobs:
129
run-tests:

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
# sbx_virus_id
44

5-
5+
<!-- badges: start -->
6+
[![Tests](https://github.com/sunbeam-labs/sbx_virus_id/actions/workflows/tests.yml/badge.svg)](https://github.com/sunbeam-labs/sbx_virus_id/actions/workflows/tests.yml)
7+
[![DockerHub](https://img.shields.io/docker/pulls/sunbeamlabs/sbx_virus_id)](https://hub.docker.com/repository/docker/sunbeamlabs/sbx_virus_id/)
8+
<!-- badges: end -->
69

710
## Introduction
811

0 commit comments

Comments
 (0)