Skip to content

Commit

Permalink
update docker build action
Browse files Browse the repository at this point in the history
  • Loading branch information
boasvdp committed Jul 3, 2024
1 parent dd4a790 commit 8caf537
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/build_and_deploy_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,10 @@ name: Docker - build and deploy image
on:
workflow_dispatch:
inputs:
path_to_context:
required: true
type: string
dockerfile_name:
default: Dockerfile
required: false
type: string
ghcr_repository_name:
default: boasvdp
required: false
type: string
IMAGE_NAME:
required: true
type: string
version:
required: false
default: latest
Expand Down Expand Up @@ -48,16 +38,16 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ inputs.ghcr_repository_name}}/${{ inputs.IMAGE_NAME }}
ghcr.io/rivm-bioinformatics/skiml-cluster
tags: |
${{ inputs.version }}
- name: Build and push to ghcr.io
id: docker_build
uses: docker/build-push-action@v3
with:
context: ${{ inputs.path_to_context }}
file: ${{ inputs.path_to_context }}/${{ inputs.dockerfile_name }}
context: .
file: ./${{ inputs.dockerfile_name }}
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: |
Expand Down

0 comments on commit 8caf537

Please sign in to comment.