From ffcd129e56c03376ad38eb4bd2f49084ff3e0b53 Mon Sep 17 00:00:00 2001 From: d3vyce Date: Sun, 2 Apr 2023 09:08:53 -0400 Subject: [PATCH] Fix docker build --- .gitea/workflows/docker-build.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index dfd1d0d..0023b64 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -6,14 +6,13 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v3 - - name: Set up docker - run: | - apt update - apt install -y docker.io - echo '{ "insecure-registries":["10.0.0.3:5000"] }' > /etc/docker/daemon.json - systemctl restart docker.service + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + registry: git.d3vyce.fr + username: ${{ secrets.GIT_USERNAME }} + password: ${{ secrets.GIT_TOKEN }} - name: Build/Push run: | docker build -t d3vyce.fr . - docker tag d3vyce.fr 10.0.0.3:5000/d3vyce - docker push 10.0.0.3:5000/d3vyce \ No newline at end of file + docker push git.d3vyce.fr/d3vyce/d3vyce.fr:latest \ No newline at end of file