From fcedd315b8c9451b01c3e4a25ac7ad60f8703085 Mon Sep 17 00:00:00 2001 From: d3vyce Date: Sun, 2 Apr 2023 09:57:43 -0400 Subject: [PATCH] Add docker-build.yml --- docker-build.yml | 18 ++++++++++++++++++ ansible-lint.yml => linting/ansible-lint.yml | 0 clint.yml => linting/clint.yml | 0 pylint.yml => linting/pylint.yml | 0 shellcheck.yml => linting/shellcheck.yml | 0 5 files changed, 18 insertions(+) create mode 100644 docker-build.yml rename ansible-lint.yml => linting/ansible-lint.yml (100%) rename clint.yml => linting/clint.yml (100%) rename pylint.yml => linting/pylint.yml (100%) rename shellcheck.yml => linting/shellcheck.yml (100%) diff --git a/docker-build.yml b/docker-build.yml new file mode 100644 index 0000000..1454292 --- /dev/null +++ b/docker-build.yml @@ -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 diff --git a/ansible-lint.yml b/linting/ansible-lint.yml similarity index 100% rename from ansible-lint.yml rename to linting/ansible-lint.yml diff --git a/clint.yml b/linting/clint.yml similarity index 100% rename from clint.yml rename to linting/clint.yml diff --git a/pylint.yml b/linting/pylint.yml similarity index 100% rename from pylint.yml rename to linting/pylint.yml diff --git a/shellcheck.yml b/linting/shellcheck.yml similarity index 100% rename from shellcheck.yml rename to linting/shellcheck.yml