Users Image #216
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
name: Users Image | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 22 * * 1-5" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses : actions/checkout@v4 | |
- name: docker login | |
env: | |
DOCKER_USER: ${{secrets.DOCKER_USER}} | |
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | |
run: | | |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD | |
- name: Build the Docker image | |
run: | | |
cd Users | |
docker build . --file Dockerfile --tag dynawo/dynawo:latest | |
- name: Docker Push | |
run: docker push dynawo/dynawo |