Skip to content

Commit a3485d2

Browse files
committedDec 19, 2023
streamline actions and dockerhub pushes
1 parent 2423b77 commit a3485d2

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed
 

‎.github/workflows/dev-image-to-dockerhub.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build and push dev image to Dockerhub
22

33
on:
4-
push:
5-
branches: [dev]
64
workflow_dispatch:
75
inputs: null
86

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Build and push master image to Dockerhub
22

33
on:
4-
push:
5-
paths:
6-
- "Dockerfile"
4+
release:
5+
types: [published]
76
workflow_dispatch:
87
inputs: null
98

@@ -20,17 +19,13 @@ jobs:
2019
username: ${{ secrets.DOCKER_USER }}
2120
password: ${{ secrets.DOCKER_PASSWORD }}
2221

23-
- name: Extract metadata (tags, labels) for Docker
24-
id: meta
25-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
26-
with:
27-
images: databio/bedhost
28-
2922
- name: Build and push Docker image
3023
uses: docker/build-push-action@v5
3124
with:
3225
context: .
3326
file: ./Dockerfile
3427
push: true
35-
tags: ${{ steps.meta.outputs.tags }}
36-
labels: ${{ steps.meta.outputs.labels }}
28+
tags:
29+
- databio/bedhost:latest
30+
- databio/bedhost:${{github.ref_name}}
31+

‎README.md

+7
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,10 @@ Existing images can be found [at dockerhub](https://hub.docker.com/r/databio/bed
4242
### Running container for development
4343

4444
Configuration settings and deployment instructions are in the `bedbase.org` repository.
45+
46+
47+
## Deploying updates automatically
48+
49+
The `bedhost/databio` image is built by a github action. It will build and push the `latest` image whenever a release is made. It will also tag that release with a tag for the release name.
50+
51+
For the dev tag, you must deploy this through manual dispatch

0 commit comments

Comments
 (0)
Please sign in to comment.