Closed alejandroacho closed 1 year ago
I think you could just do:
- name: 🏗️ Build and push dev
if: ${{ github.ref == 'refs/heads/dev' }}
uses: docker/build-push-action@v3
with:
context: .
file: ./Envs/Dev/Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }}:dev-latest
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }}:${{ github.sha }}
build-args: |
${{ secrets.PRODUCTION_ENV_FILE }}
Troubleshooting
Hi,
I would like to know if there is a way to use an env file such like this: