fix: Use a github action to login
the problem was messed up env variables but still, it's better to use an
action
@@ -27,14 +27,14 @@ jobs:
if: steps.branch.outputs.BRANCH_NAME == 'main'
run: |
make build-all-small
+ - name: Login to Docker Hub
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.CFCIBOT_DOCKERHUB_USERNAME }}
+ password: ${{ secrets.CFCIBOT_DOCKERHUB_PASSWORD }}
- name: Build Carrier images
if: steps.branch.outputs.BRANCH_NAME == 'main'
- env:
- REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
- REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
run: |
- docker logout
- docker login -u "$CFCIBOT_DOCKERHUB_USERNAME" -p "$CFCIBOT_DOCKERHUB_PASSWORD"
make build-images
- name: Create CHECKSUMS
if: steps.branch.outputs.BRANCH_NAME == 'main'
