test build and push

This commit is contained in:
Abner Rizzi 2023-08-10 08:54:45 -03:00
parent f47afeaeb1
commit a91580b75f
1 changed files with 3 additions and 3 deletions

View File

@ -15,9 +15,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the hello-docker Docker image
run: |
echo "Builing and push..."
repo_name=${{ github.repository }}
repo_name=${repo_name,,}
echo ${reponame}
docker build . -f Dockerfile.base --tag ghcr.io/${repo_name}:latest
#docker run ghcr.io/deselikem/hello-docker-gcr-demo:latest
#docker push ghcr.io/deselikem/hello-docker-gcr-demo:latest
docker run ghcr.io/${repo_name}:latest
docker push ghcr.io/${repo_name}:latest