From 7e77c11a397997964648bd2a97629a5fa60d1829 Mon Sep 17 00:00:00 2001 From: Mitchell Marino Date: Thu, 15 Feb 2024 16:43:23 -0600 Subject: [PATCH] add ci/cd --- .gitea/workflows/build_and_push.yaml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/build_and_push.yaml diff --git a/.gitea/workflows/build_and_push.yaml b/.gitea/workflows/build_and_push.yaml new file mode 100644 index 0000000..7991f81 --- /dev/null +++ b/.gitea/workflows/build_and_push.yaml @@ -0,0 +1,30 @@ +name: Build and Push + +on: + push: + branches: + - main + +jobs: + build_and_publish_docker_image: + runs-on: ubuntu-latest + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Install Docker + run: curl -fsSL https://get.docker.com | sh + + - name: Login to Docker Registry + uses: https://github.com/docker/login-action@v3 + with: + registry: git.marinodev.com + username: ${{ vars.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and Push Docker Image + uses: docker/build-push-action@v5 + with: + push: true + tags: git.marinodev.com/mitchell/rust_gitea_ci:latest