Added container registry and username to push and build commands
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 26s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 26s
This commit is contained in:
parent
8ccc8e2129
commit
196e338e66
@ -16,7 +16,7 @@ jobs:
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.luke-else.co.uk
|
||||
registry: ${{ secrets.CONTAINER_REGISTRY }}
|
||||
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.CONTAINER_REGISTRY_PASSKEY }}
|
||||
|
||||
@ -25,8 +25,8 @@ jobs:
|
||||
|
||||
- name: Build and Tag Docker Image
|
||||
run: |
|
||||
docker build -t ${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:latest .
|
||||
docker build -t ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/your-image-name:latest .
|
||||
|
||||
- name: Push Docker Image
|
||||
run: |
|
||||
docker push ${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:latest
|
||||
docker push ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/your-image-name:latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user