Skip to content

Commit

Permalink
Testing docker push.
Browse files Browse the repository at this point in the history
Signed-off-by: Govind Kamat <govkamat@amazon.com>
  • Loading branch information
gkamat committed Dec 22, 2024
1 parent 477aad9 commit 6a74ab1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 6a74ab1

Please sign in to comment.