Skip to content

Commit

Permalink
fix(build): revert docker image context changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brunopacheco1 committed Mar 18, 2024
1 parent 393a183 commit ff9ead0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
name: Publish and Deploy main

on:
push:
branches: ['main']
workflow_dispatch:
workflow_run:
workflows: ["Run Tests"]
branches: [main]
types:
- completed

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -67,15 +69,16 @@ jobs:
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: ./ckan
push: false
load: true
tags: ${{ steps.tag.outputs.last_tag }}
labels: ${{ steps.meta.outputs.labels }}
load: true

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: "${{ steps.tag.outputs.last_tag }}"
image-ref: "${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.last_tag }}"
format: "table"
exit-code: "1"
ignore-unfixed: true
Expand All @@ -85,6 +88,7 @@ jobs:
- name: Push Docker image
uses: docker/build-push-action@v5
with:
context: ./ckan
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ghcr.io/genomicdatainfrastructure/gdi-userportal-ckan-docker
DOCKER_METADATA_OUTPUT_TAGS:

jobs:
ort:
Expand Down

0 comments on commit ff9ead0

Please sign in to comment.