Skip to content

Commit

Permalink
Update publish-container-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dprosper authored Jan 6, 2022
1 parent bd4ab20 commit 591dd71
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
publish_to_registry:
name: Build and push image to registry
runs-on: ubuntu-latest
env:
DOCKERHUB_ORG: ibmcom
DOCKERHUB_REPOSITORY: tutorial-application-log-analysis
steps:
- name: Check out the repo
uses: actions/checkout@v2
Expand All @@ -22,12 +25,12 @@ jobs:
id: meta
uses: docker/metadata-action@v3.5.0
with:
images: ${{ secrets.DOCKERHUB_ORG }}/${{ secrets.DOCKERHUB_REPOSITORY }}
images: ${{ env.DOCKERHUB_ORG }}/${{ env.DOCKERHUB_REPOSITORY }}

- name: Build and push image
uses: docker/build-push-action@v2.7.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 591dd71

Please sign in to comment.