diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml new file mode 100644 index 0000000..0323ea0 --- /dev/null +++ b/.github/workflows/production.yaml @@ -0,0 +1,34 @@ +name: Production + +on: + push: + branches: + - 'production' + release: + types: + - created + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: | + runbooksolutions/agent:latest + ${{ github.event_name == 'release' && github.ref ? 'runbooksolutions/agent:' + github.ref : '' }} \ No newline at end of file diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml new file mode 100644 index 0000000..c083533 --- /dev/null +++ b/.github/workflows/staging.yaml @@ -0,0 +1,29 @@ +name: Dev + +on: + push: + branches: + - 'staging' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: runbooksolutions/agent:dev \ No newline at end of file diff --git a/README.md b/README.md index a9b3ec8..76d79d4 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ docker run \ -v $(pwd)/kerberos:/keytabs \ -d \ --restart unless-stopped \ - runbooksolutions/image_agent:latest + runbooksolutions/agent:latest ```