Added Docker login action

master
Gertjan Krol 2023-09-01 23:58:13 +02:00
parent a18978d9ec
commit d4f9c39cea
1 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,11 @@ jobs:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Docker login - name: Docker login
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} https://${REGISTRY} uses: actions/docker-login@v2
with:
registry: ${{ REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push - name: Build and push
uses: actions/docker-build-push@v4 uses: actions/docker-build-push@v4
with: with: