This commit is contained in:
@@ -30,13 +30,18 @@ jobs:
|
||||
env:
|
||||
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
|
||||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
|
||||
- name: Configure Docker daemon
|
||||
run: |
|
||||
echo '{"insecure-registries":["52.156.106.39.nip.io"]}' | sudo tee /etc/docker/daemon.json
|
||||
sudo systemctl restart docker
|
||||
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: http://52.156.106.39.nip.io
|
||||
username: ${{ secrets.GIT_USERNAME }}
|
||||
password: ${{ secrets.GIT_TOKEN }}
|
||||
run: |
|
||||
echo "${{ secrets.GIT_TOKEN }}" | docker login 52.156.106.39.nip.io \
|
||||
-u "${{ secrets.GIT_USERNAME }}" \
|
||||
--password-stdin
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
uses: docker/build-push-action@v5
|
||||
|
||||
Reference in New Issue
Block a user