Merge pull request #348 from blackav/347-implement-simplified-registr… #135
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: Docker Image CI | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker login | |
env: | |
DOCKER_LOGIN: ${{secrets.DOCKER_LOGIN}} | |
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | |
run: docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag blackav/ejudge:master | |
- name: Docker push | |
run: docker push blackav/ejudge:master | |