Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/cidockerfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: continious_integration

on:
push

env:
DOCKER_USERNAME: ${{vars.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
DOCKER_IMAGE: jattiinnn/my_python_file
jobs:
build-using-docker:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4.2.2
- name: Docker login
uses: docker/login-action@v3.4.0
with:
username: ${{env.DOCKER_USERNAME}}
password: ${{env.DOCKER_PASSWORD}}
- name: Docker Build
run: |
docker build -t $DOCKER_IMAGE:${{github.sha}} .
docker tag $DOCKER_IMAGE:${{github.sha}} $DOCKER_IMAGE:latest
- name: Push the Docker Image to Hub
run: |
docker push $DOCKER_IMAGE:${{ github.sha }}
docker push $DOCKER_IMAGE:latest
38 changes: 0 additions & 38 deletions .github/workflows/docker-latest.yml

This file was deleted.