Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper7kills committed Nov 27, 2023
1 parent c48f21d commit 9672d40
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -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 : '' }}
29 changes: 29 additions & 0 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ docker run \
-v $(pwd)/kerberos:/keytabs \
-d \
--restart unless-stopped \
runbooksolutions/image_agent:latest
runbooksolutions/agent:latest

```

Expand Down

0 comments on commit 9672d40

Please sign in to comment.