From d4ea448fc6af38b60eee026cbac0d2727537885b Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Tue, 2 Jul 2024 14:24:07 +0200 Subject: [PATCH] [ci] feat: added gitea actions config --- .gitea/workflows/build.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..79633e1 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,37 @@ +--- + +# generic +name: 'build' +on: + push: + branches: + - 'master' + +# build job +jobs: + build: + runs-on: 'ubuntu-latest' + steps: + + # checkout code + - name: 'clone repo' + uses: 'actions/checkout@v2' + + # login to cr.simoncor.net + - name: 'login to cr.simoncor.net' + uses: 'docker/login-action@v2' + with: + registry: 'cr.simoncor.net' + username: ${{ vars.REGISTER_USERNAME }} + password: ${{ vars.REGISTER_PASSWORD }} + + # build container + - name: 'build container' + uses: 'docker/build-push-action@v3' + with: + context: '.' + file: 'Dockerfile.linux.amd64' + push: true + tags: | + cr.simoncor.net/siempie/ansible-deployment:latest + cr.simoncor.net/siempie/ansible-deployment:v30