Docker #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/app.yaml | |
name: Docker | |
on: | |
schedule: | |
- cron: '30 10 7,14,21,28 * *' | |
push: | |
paths: | |
- Dockerfile | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
timeout-minutes: 360 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build Docker image | |
run: | | |
docker build -t ngspetsc:latest . | |
- name: Push Docker image | |
run: | | |
docker tag ngspetsc:latest urzerbinati/ngspetsc:latest | |
docker push urzerbinati/ngspetsc:latest |