Skip to content
Merged
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
34 changes: 0 additions & 34 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,3 @@ jobs:
dotnet restore
dotnet build
dotnet test tests/NosCoreBot.Tests -v m

- name: Configure AWS Credentials
if: github.ref == 'refs/heads/master'
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- name: Login to Amazon ECR
if: github.ref == 'refs/heads/master'
id: login-ecr
uses: aws-actions/amazon-ecr-login@03f1aad4c6c7ffd436567f42f9384779290529bd # v2

- name: Build, tag, and push image to Amazon ECR
if: github.ref == 'refs/heads/master'
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: noscorebot
IMAGE_TAG: latest

run: |
docker build -f ./src/NosCoreBot/dockerfile -t noscorebot:$IMAGE_TAG .
docker tag noscorebot:$IMAGE_TAG $ECR_REGISTRY/noscorebot:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG

- name: Deploy to Amazon ECS
if: github.ref == 'refs/heads/master'
uses: donaldpiret/ecs-deploy@b4c35d42b679ca60f35fa383cfbd71bcc9248a06 # master 2026-08 (v0.3.0 + dep CVE bumps)
with:
cluster: discordbot-cluster
target: noscorebot
tag: latest
Loading