From 6a74ab1574d2f14cf67cece36745970a537f622b Mon Sep 17 00:00:00 2001 From: Govind Kamat Date: Sat, 21 Dec 2024 10:07:45 -0800 Subject: [PATCH] Testing docker push. Signed-off-by: Govind Kamat --- .github/workflows/docker-build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index da87a35d..1b77f0c6 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -29,11 +29,17 @@ jobs: version: 'v0.9.1' - uses: actions/checkout@v4 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: govkamat + password: ${{ secrets.DOCKERHUB_PASSWORD }} + - name: Docker Build ${{ matrix.platform }} run: | docker buildx version - tag=osb/osb-`echo ${{ matrix.platform }} | tr '/' '-'` + tag=govkamat/osb-`echo ${{ matrix.platform }} | tr '/' '-'` set -x - docker buildx build --platform ${{ matrix.platform }} --build-arg VERSION=`cat version.txt` --build-arg BUILD_DATE=`date -u +%Y-%m-%dT%H:%M:%SZ` -f docker/Dockerfile -t "$tag" -o type=docker . + docker buildx build --platform ${{ matrix.platform }} --build-arg VERSION=`cat version.txt` --build-arg BUILD_DATE=`date -u +%Y-%m-%dT%H:%M:%SZ` -f docker/Dockerfile -t "$tag:`date +%s`" --push . + docker images set +x - docker images | grep "$tag"