Skip to content

Commit

Permalink
Update Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-GitH2 committed Feb 22, 2024
1 parent 7927b3e commit b9b9c13
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/build_nd_deploy_to_AKS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@ permissions:
id-token: write

jobs:
# build:
name: Build Container Image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: metadata
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/flaskblog-app:latest
# # build:
# name: Build Container Image
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Login to DockerHub
# uses: docker/login-action@v3.0.0
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Extract metadata (tags, labels) for Docker
# id: metadata
# uses: docker/metadata-action@v5
# with:
# images: ${{ secrets.DOCKER_USERNAME }}/flaskblog-app:latest

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/flaskblog-app:${{ github.sha }}
labels: ${{ steps.metadata.outputs.labels }}
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags: ${{ secrets.DOCKER_USERNAME }}/flaskblog-app:${{ github.sha }}
# labels: ${{ steps.metadata.outputs.labels }}
deploy:
defaults:
run:
Expand Down

0 comments on commit b9b9c13

Please sign in to comment.