Merge pull request #185 from WEEE-Open/dependabot/pip/requests-2.31.0 #148
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: Push Docker Image | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- 'README*' | |
- 'LICENSE' | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
if: false # github.repository_owner == 'WEEE-Open' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Login to our Docker registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ${{secrets.DOCKER_REGISTRY}} | |
username: ${{secrets.DOCKER_USERNAME}} | |
password: ${{secrets.DOCKER_PASSWORD}} | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag ${{secrets.DOCKER_REGISTRY}}/peracotta:latest | |
- name: Push the Docker Image to our custom registry | |
run: docker push ${{secrets.DOCKER_REGISTRY}}/peracotta:latest |