Skip to content

Commit

Permalink
Update docker-build-and-push.yml
Browse files Browse the repository at this point in the history
updated steps
  • Loading branch information
hanisntsolo authored Jul 20, 2024
1 parent f7d635d commit 4df8042
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
# Schedule for automatic builds:
schedule:
- cron: '0 0 * * *' # Every day at midnight UTC
- cron: '0 0 * * *' # Every day at midnight UTC
workflow_dispatch: # Allow manual triggers

jobs:
Expand All @@ -29,13 +29,15 @@ jobs:
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build Docker image
run: |
docker buildx build --push --tag hanisntsolo/codeforces-lamp:latest .
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Build and push Docker image
run: |
docker buildx build --push --tag hanisntsolo/codeforces-lamp:latest .

0 comments on commit 4df8042

Please sign in to comment.