testing ci/ci
All checks were successful
Base DNS Docker Image CI/CD Build / build-docker-image (push) Successful in 1m4s

This commit is contained in:
Donavan Fritz 2024-02-08 18:18:54 -08:00
parent f4dfe25687
commit f87a0caaa6

View File

@ -20,7 +20,7 @@ jobs:
run: |
docker push $CONTAINER_NAME:$MAJOR_VERSION.${{ github.run_number }}
- name: Tag and push Docker image as latest if on master branch
if: $GITHUB_REF == 'refs/heads/main'
if: ${{ github.ref }} == 'refs/heads/main'
run: |
docker tag $CONTAINER_NAME:$MAJOR_VERSION.${{ github.run_number }} $CONTAINER_NAME:latest
docker push $CONTAINER_NAME:latest