forked from anmolnagpal/devops-machine
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Dockerfile * Update Dockerfile * testing enigma workflow * Update enigma-docker.yml * test * Update enigma-docker.yml * test * Update enigma-docker.yml * Update enigma-docker.yml * Update enigma-docker.yml removed commented lines * Update docker-scanner.yaml to 1.2.8 --------- Co-authored-by: Vishwajit Nagulkar <[email protected]>
- Loading branch information
1 parent
030f5f5
commit 404bd81
Showing
4 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ on: | |
|
||
jobs: | ||
docker-scanner: | ||
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected].7 | ||
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected].8 | ||
with: | ||
severity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL" | ||
dockerfile-path: "./.docker/Dockerfile" | ||
security-upload: "true" | ||
security-upload: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Enigma Docker Build and Publish. | ||
on: | ||
push: | ||
tags: [ v* ] | ||
|
||
jobs: | ||
docker-build-publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
env: | ||
DOCKER_IMAGE: devops-machine | ||
DOCKER_TAG: ghcr.io/${{ github.repository }}:${{ github.ref_name }} | ||
PROVIDER: github | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build Docker Image | ||
uses: clouddrove/[email protected] | ||
with: | ||
command: bake | ||
DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | ||
DOCKER_TAG: ${{ env.DOCKER_TAG }} | ||
DOCKERFILE_PATH: .docker/Dockerfile | ||
GITHUB_USERNAME: ${{ github.actor }} | ||
TOKEN: ${{ secrets.GITHUB }} | ||
|
||
- name: Publish Docker Image | ||
uses: clouddrove/[email protected] | ||
with: | ||
command: publish | ||
DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | ||
DOCKER_TAG: ${{ env.DOCKER_TAG }} | ||
DOCKERFILE_PATH: .docker/Dockerfile | ||
GITHUB_USERNAME: ${{ github.actor }} | ||
TOKEN: ${{ secrets.GITHUB }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ jobs: | |
uses: docker/[email protected] | ||
|
||
- name: Build the application image | ||
run: docker build -t clouddrove/devops:0.0.${{ github.run_number }} ./.docker/. | ||
|
||
run: docker build -t clouddrove/devops:0.0.${{ github.run_number }} -f .docker/Dockerfile . | ||
- name: Bring container up and running | ||
run: docker run --name devops -d clouddrove/devops:0.0.${{ github.run_number }} | ||
|
||
|