Merge pull request #236 from D10S0VSkY-OSS/hotfix/boto3 #232
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: SLD Schedule Docker Image CI | |
on: | |
# Triggers the workflow on push events but only for the main branch | |
push: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: docker login | |
env: | |
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
run: | | |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD | |
- name: Build the Docker image with tags | |
working-directory: ./sld-schedule | |
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_USERNAME }}/sld-schedule:2.7.0 | |
- name: Docker Push with tags | |
#if: github.event.pull_request.merged == true | |
run: docker push ${{ secrets.DOCKER_USERNAME }}/sld-schedule:2.7.0 | |
- name: Build the Docker image | |
working-directory: ./sld-schedule | |
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_USERNAME }}/sld-schedule:latest | |
- name: Docker Push | |
#if: github.event.pull_request.merged == true | |
run: docker push ${{ secrets.DOCKER_USERNAME }}/sld-schedule:latest | |