Fix docker build
This commit is contained in:
parent
d0b29a77aa
commit
ffcd129e56
@ -6,14 +6,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up docker
|
- name: Login to Docker Hub
|
||||||
run: |
|
uses: docker/login-action@v2
|
||||||
apt update
|
with:
|
||||||
apt install -y docker.io
|
registry: git.d3vyce.fr
|
||||||
echo '{ "insecure-registries":["10.0.0.3:5000"] }' > /etc/docker/daemon.json
|
username: ${{ secrets.GIT_USERNAME }}
|
||||||
systemctl restart docker.service
|
password: ${{ secrets.GIT_TOKEN }}
|
||||||
- name: Build/Push
|
- name: Build/Push
|
||||||
run: |
|
run: |
|
||||||
docker build -t d3vyce.fr .
|
docker build -t d3vyce.fr .
|
||||||
docker tag d3vyce.fr 10.0.0.3:5000/d3vyce
|
docker push git.d3vyce.fr/d3vyce/d3vyce.fr:latest
|
||||||
docker push 10.0.0.3:5000/d3vyce
|
|
Loading…
x
Reference in New Issue
Block a user