From fdfa49c672825d19ca1a87f9025a4495556d78ef Mon Sep 17 00:00:00 2001 From: Bhasher Date: Tue, 26 Dec 2023 19:22:17 +0100 Subject: [PATCH] CI --- .gitea/workflows/publish.yaml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .gitea/workflows/publish.yaml diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..e337944 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,46 @@ +name: Build And Push +run-name: ${{ gitea.actor }} is runs ci pipeline +on: + - push + +jobs: + release-image: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."gitea"] + http = true + insecure = true + + - name: Login + uses: docker/login-action@v2 + with: + registry: http://gitea:3000 + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Get Meta + id: meta + run: | + echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT + echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + platforms: | + linux/amd64 + linux/arm64 + tags: | + gitea:3000/ssh-honeypot:latest \ No newline at end of file