Add docker-build.yml

This commit is contained in:
d3vyce 2023-04-02 09:57:43 -04:00
parent 9a23f7f0e3
commit fcedd315b8
5 changed files with 18 additions and 0 deletions

18
docker-build.yml Normal file
View File

@ -0,0 +1,18 @@
name: Docker-build
on: [push]
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up docker
run: |
apt update
apt install -y docker.io
- name: Build/Push
run: |
echo ${{ secrets.GIT_TOKEN }} | docker login -u ${{ github.actor }} --password-stdin git.d3vyce.fr
docker build -t d3vyce.fr .
docker tag d3vyce.fr git.d3vyce.fr/d3vyce/d3vyce.fr:latest
docker push git.d3vyce.fr/d3vyce/d3vyce.fr:latest