test build and push

This commit is contained in:
Abner Rizzi 2023-08-10 08:24:38 -03:00
parent 225588e7d2
commit dfe1598d3f
1 changed files with 3 additions and 17 deletions

View File

@ -20,23 +20,9 @@ jobs:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: name1
run: |
echo "repolower=${${{ github.event.repository.name }},,}" >>${GITHUB_ENV}
- name: Ubuntu GitHub Actions environment variables List
run: env
- name: 'Build Inventory Image'
- name: 'Build and Push Docker image to ghcr.io'
env:
REPO_NAME: '${{ github.event.repository.name }}'
run: |
echo $REPO_NAME
echo ${{ github.event.repository.name }}
echo "repolower=${REPO_NAME,,}" >>${GITHUB_ENV}
echo "$repolower"
echo "${repolower}"
# docker build . -f Dockerfile.base --tag ghcr.io/abnerrizzi/${REPO_NAME}:latest
# docker push ghcr.io/abnerrizzi/${REPO_NAME}:latest
docker build . -f Dockerfile.base --tag ghcr.io/${GITHUB_REPOSITORY,,}:latest
docker push ghcr.io/${GITHUB_REPOSITORY,,}:latest