Skip to content

Commit

Permalink
chore(build): fix dockerhub image name
Browse files Browse the repository at this point in the history
we extract image from github repo name
  • Loading branch information
o-orand committed Mar 13, 2024
1 parent 3dc7df3 commit ee153f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ env:
DOCKER_FILE_PATH: .
IMAGE: "ghcr.io/${{ github.repository }}"
DOCKERHUB_ORG: elpaasoci
OCI_IMAGE: concourse-pipeline-resource

jobs:
build_and_publish:
Expand All @@ -37,7 +36,12 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

-
id: gh-repo-name
run: |
echo "OCI_IMAGE=$(basename ${{ github.repository }})" >> $GITHUB_ENV
shell: bash

-
name: publish image
uses: docker/[email protected]
Expand Down

0 comments on commit ee153f0

Please sign in to comment.