Skip to content

Commit

Permalink
repository path baked into image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimbbp committed Sep 18, 2024
1 parent c287d33 commit 9876be7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build_and_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,18 @@ jobs:

- name: Check Out
uses: actions/checkout@v4
- run: echo "🏃‍➡️ ${{ github.repository }} has been cloned to ${{ runner.name }}"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

env:
DATETIME: "$(date +'%Y%m%d%H%M%S')"
- name: Set Image Tag #TODO get rid of this echo hack, put it directly in the variable
run: echo "IMAGE_TAG=openvdb${{ env.DATETIME }}" >> $GITHUB_ENV
run: echo "IMAGE_TAG=joachimbbp/openvdb:openvdb_${{ env.DATETIME }}" >> $GITHUB_ENV

- name: Build and Push to Dockerhub
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ env.IMAGE_TAG }}
repository: ${{ secrets.DOCKERHUB_USERNAME }}/openvdb
tags: ${{ env.IMAGE_TAG }}

0 comments on commit 9876be7

Please sign in to comment.