Skip to content

Commit

Permalink
ci(deploy.yml): enable docker build&push again
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpomerenke committed Mar 9, 2024
1 parent 59b7f39 commit f056135
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,29 @@ jobs:
# ACLED_KEY: ${{ secrets.ACLED_KEY }}
# ZENROWS_API_KEY: ${{ secrets.ZENROWS_API_KEY }}

# build-and-push:
# needs: test
# runs-on: ubuntu-22.04
# steps:

# - name: Checkout code
# uses: actions/checkout@v4

# - name: Login to Docker Registry
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
build-and-push:
needs: test
runs-on: ubuntu-22.04
steps:

# - name: Build Docker image
# run: |
# docker build \
# -t socialchangelab/media-impact-monitor:${{ github.sha }} \
# -t socialchangelab/media-impact-monitor:latest \
# .
- name: Checkout code
uses: actions/checkout@v4

# - name: Push Docker image
# run: docker push --all-tags socialchangelab/media-impact-monitor
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker image
run: |
docker build \
-t socialchangelab/media-impact-monitor:${{ github.sha }} \
-t socialchangelab/media-impact-monitor:latest \
.
- name: Push Docker image
run: docker push --all-tags socialchangelab/media-impact-monitor

deploy:
# this pipeline does not work locally with act
Expand Down

0 comments on commit f056135

Please sign in to comment.