docs: add sprint4 marks #21
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: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build_and_push_docker_image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Login to docker hub | |
uses: docker/login-action@v1 | |
with: | |
username: vedatgoktepe | |
password: iamverycool | |
- name: Build and push the Docker image | |
env: | |
DOCKER_IMAGE_TAG: latest | |
run: | | |
docker build -t vedatgoktepe/myapp:${DOCKER_IMAGE_TAG} . | |
docker push vedatgoktepe/myapp:${DOCKER_IMAGE_TAG} |