Skip to content

Commit

Permalink
fix: ec2-docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Axnjr committed Mar 27, 2024
1 parent 4437e8c commit 53e235e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 47 deletions.
36 changes: 0 additions & 36 deletions .github/workflow/main.yml

This file was deleted.

25 changes: 14 additions & 11 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login Dockerhub
- uses: actions/checkout@v3

env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD

- name: Build the Docker image
run: docker build -t axnjr/ignition_wsss .
- name: Push to Dockerhub
run: docker push axnjr/ignition_wsss:latest
- name: Loging in to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./WebsocketServer
file: ./WebsocketServer/Dockerfile
push: true
tags: axnjr/ignition_wsss:latest

deploy:
needs: build
Expand Down

0 comments on commit 53e235e

Please sign in to comment.