diff --git a/.drone.yaml b/.drone.yaml deleted file mode 100644 index ef0b917..0000000 --- a/.drone.yaml +++ /dev/null @@ -1,39 +0,0 @@ ---- -kind: 'pipeline' -name: 'build' -type: 'kubernetes' - -steps: - -# build and publish -- image: 'plugins/docker' - name: 'publish' - pull: 'always' - when: - branch: - - 'master' - event: - - 'push' - - settings: - - # registery and repos - registry: 'cr.simoncor.net' - cache_from: 'siempie/ansible-deployment' - repo: 'cr.simoncor.net/siempie/ansible-deployment' - mtu: '1440' - - # build stuff - dockerfile: 'Dockerfile.linux.amd64' - daemon_off: 'false' - - # authentication - username: - from_secret: 'docker_username' - password: - from_secret: 'docker_password' - - # tags - tags: - - 'latest' - - 'v30' diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 79633e1..2af6e08 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,7 +1,7 @@ --- # generic -name: 'build' +name: 'Build and Publish' on: push: branches: @@ -14,19 +14,19 @@ jobs: steps: # checkout code - - name: 'clone repo' + - name: 'Clone repo' uses: 'actions/checkout@v2' # login to cr.simoncor.net - - name: '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' + # build and publish container + - name: 'Build and Publish' uses: 'docker/build-push-action@v3' with: context: '.'