Build And Push #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build And Push | |
on: | |
workflow_dispatch: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
environment: docker_jbbp | |
steps: | |
- name: Verify Secrets | |
run: echo "Username is set to ${{ secrets.DOCKERHUB_USERNAME }}" | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Set up QEMU #might not be needed | |
uses: docker/setup-qemu-action@v3 | |
- name: Check Out | |
uses: actions/checkout@v4 | |
- 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, figure out how to se it as an env variable | |
run: echo "IMAGE_TAG=joachimbbp/openvdb:openvdb_${{ env.DATETIME }}" >> $GITHUB_ENV #TODO cleanup the logic here; it would be nice to have the repo as it's own env variable | |
- name: Build and Push to Dockerhub | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
#platforms: linux/amd64,linux/arm64/v8 | |
tags: ${{ env.IMAGE_TAG }} |