Skip to content

Commit

Permalink
🔄 synced file(s) with neurobagel/workflows (#58)
Browse files Browse the repository at this point in the history
* 🔄 synced local '.autorc' with remote 'template_configs/.autorc'

* 🔄 created local '.github/workflows/build_docker_on_release.yml' from remote 'template_workflows/auto_release/build_docker_on_release.yml'

---------

Co-authored-by: surchs <null>
  • Loading branch information
surchs authored Jan 23, 2024
1 parent ac9e4b2 commit 7fc9cd0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .autorc
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
"released",
"protected-branch",
"first-time-contributor",
"omit-commits",
{
"username": "dependabot[bot]",
"subject": "[pre-commit.ci]",
"labels": "_bot"
}
[
"omit-commits",
{
"username": "dependabot[bot]",
"subject": "[pre-commit.ci]",
"labels": "_bot"
}
]
],
"labels": [
{
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/build_docker_on_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build Docker image on release

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/federation_api:latest, ${{ secrets.DOCKERHUB_USERNAME }}/federation_api:${{ github.event.release.tag_name }}

0 comments on commit 7fc9cd0

Please sign in to comment.