Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PA-13935 Updated Docker & Amazon deploy actions #114

Merged
merged 2 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/soos-dast-docker-image-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: soosio/dast:beta
labels: ${{ steps.meta.outputs.labels }}
- name: Promote alpha to beta
id: promote-alpha-to-beta
run: |
docker pull soosio/dast:alpha
docker tag soosio/dast:alpha soosio/dast:beta
SOOS-GSteen marked this conversation as resolved.
Show resolved Hide resolved
docker push soosio/dast:beta
13 changes: 6 additions & 7 deletions .github/workflows/soos-dast-docker-image-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: soosio/dast:latest
labels: ${{ steps.meta.outputs.labels }}
- name: Promote beta to latest
id: promote-beta-to-latest
run: |
docker pull soosio/dast:beta
docker tag soosio/dast:beta soosio/dast:latest
SOOS-GSteen marked this conversation as resolved.
Show resolved Hide resolved
docker push soosio/dast:latest
- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/soos-dast-publish-aws-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ jobs:
with:
registry-type: public

- name: Build, tag, and push image to Amazon ECR
id: build-image
- name: Promote alpha tag to latest, and push image to Amazon ECR
id: promote-image
env:
ECR_REGISTRY: public.ecr.aws/y6h0x1r3
ECR_REPOSITORY: soos-dast
IMAGE_TAG_ALPHA: alpha
IMAGE_TAG: latest
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker pull $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG_ALPHA
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG_ALPHA $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "soos-dast",
"version": "2.0.33",
"version": "2.0.34",
"description": "SOOS DAST - The affordable no limit web vulnerability scanner",
"main": "index.js",
"scripts": {
Expand All @@ -26,7 +26,7 @@
},
"devDependencies": {
"@types/argparse": "^2.0.15",
"@types/node": "^20.12.7",
"@types/node": "^20.12.8",
"prettier": "^3.2.5",
"typescript": "^5.4.5"
},
Expand Down