Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ jobs:
steps:

- name: Check Out Repo
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v4

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v7
with:
context: ./
file: ./Dockerfile
Expand All @@ -46,7 +46,7 @@ jobs:
run: echo "digest=${{ steps.docker_build.outputs.digest }}" >> $GITHUB_OUTPUT

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
uses: peter-evans/repository-dispatch@v4
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: nextgenusfs/funannotate
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v6
with:
Comment on lines 23 to 27
python-version: '3.x'
- name: Install dependencies
Expand Down
22 changes: 9 additions & 13 deletions .github/workflows/release-triggered.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
release_tag:
description: "Release tag to publish when manually triggered"
required: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -19,34 +23,26 @@ jobs:

steps:
- name: Check Out Repo
uses: actions/checkout@v2

- name: Get release
id: get_release
uses: kaliber5/action-get-release@v1
with:
token: ${{ github.token }}
latest: true
uses: actions/checkout@v6

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v4

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v7
with:
context: ./
file: ./Dockerfile2
push: true
tags: nextgenusfs/funannotate:${{ steps.get_release.outputs.tag_name }}
tags: nextgenusfs/funannotate:${{ inputs.release_tag || github.event.client_payload.tag }}

- name: Image digest
run: echo "digest=${{ steps.docker_build.outputs.digest }}" >> $GITHUB_OUTPUT

29 changes: 11 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
release_tag:
description: "Release tag to publish when manually triggered"
required: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -19,45 +23,34 @@ jobs:

steps:
- name: Check Out Repo
uses: actions/checkout@v2

- name: Get release
id: get_release
uses: kaliber5/action-get-release@v1
with:
token: ${{ github.token }}
latest: true

- name: Test git release scrapper
id: test_release
run: echo "tag_name=${{ steps.get_release.outputs.tag_name }}" >> $GITHUB_OUTPUT
uses: actions/checkout@v6

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v4

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v7
with:
context: ./
file: ./Dockerfile
push: true
tags: nextgenusfs/funannotate-slim:${{ steps.get_release.outputs.tag_name }}
tags: nextgenusfs/funannotate-slim:${{ inputs.release_tag || github.event.release.tag_name }}

- name: Image digest
run: echo "digest=${{ steps.docker_build.outputs.digest }}" >> $GITHUB_OUTPUT

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
uses: peter-evans/repository-dispatch@v4
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: nextgenusfs/funannotate
event-type: docker-hub-release-complete
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "tag": "${{ inputs.release_tag || github.event.release.tag_name }}"}'
8 changes: 4 additions & 4 deletions .github/workflows/singularity-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v6

- uses: chrnorm/deployment-action@releases/v1
- uses: chrnorm/deployment-action@v2.0.8
name: Create GitHub deployment
id: deployment
with:
Expand All @@ -30,15 +30,15 @@ jobs:

- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@releases/v1
uses: chrnorm/deployment-status@v2.0.4
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
state: "success"
deployment_id: ${{ steps.deployment.outputs.deployment_id }}

- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@releases/v1
uses: chrnorm/deployment-status@v2.0.4
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
state: "failure"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/triggered-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ jobs:
steps:

- name: Check Out Repo
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v4

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v7
with:
context: ./
file: ./Dockerfile2
Expand All @@ -45,7 +45,7 @@ jobs:
run: echo "digest=${{ steps.docker_build.outputs.digest }}" >> $GITHUB_OUTPUT

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
uses: peter-evans/repository-dispatch@v4
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: nextgenusfs/funannotate
Expand Down