Skip to content

Commit

Permalink
docker workflow deleted and inserted in ci-cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
KORFITZ1DEV committed Nov 17, 2023
1 parent 3ea8885 commit 7604033
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 43 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci-cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,31 @@ jobs:
run: |
echo "Building project"
python3 server/server.py
docker_deploy_image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: ./
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
43 changes: 0 additions & 43 deletions .github/workflows/docker-image.yml

This file was deleted.

0 comments on commit 7604033

Please sign in to comment.