此内容来自第三方平台 (Dailymotion)。如果此视频侵犯了您的版权,请使用 立即删除 工具。
CI/CD Pipeline Using GitHub Actions for Dockerized Application | Lab task 3
描述
hub.docker.com
cicd-pipeline-demo
Hello! This app was deployed via GitHub Actions.
Dockerfile
FROM nginx:alpine
COPY index.html /usr/share/nginx/html
.github/workflows/docker.yml
name: Build and Push Docker Image
on:
push:
branches: [ "main" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# 1. Check out the code from the repo
- name: Checkout code
uses: actions/checkout@v3
# 2. Login to Docker Hub using the secrets you created
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# 3. Build the image and Push it to Docker Hub
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
# REPLACE 'your-docker-username' below with your actual username!
tags: ${{ secrets.DOCKER_USERNAME }}/cicd-pipeline-demo:latest
cicd-pipeline-demo
Hello! This app was deployed via GitHub Actions.
Dockerfile
FROM nginx:alpine
COPY index.html /usr/share/nginx/html
.github/workflows/docker.yml
name: Build and Push Docker Image
on:
push:
branches: [ "main" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# 1. Check out the code from the repo
- name: Checkout code
uses: actions/checkout@v3
# 2. Login to Docker Hub using the secrets you created
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# 3. Build the image and Push it to Docker Hub
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
# REPLACE 'your-docker-username' below with your actual username!
tags: ${{ secrets.DOCKER_USERNAME }}/cicd-pipeline-demo:latest
相关视频
Docker-CI/CD-Kubernetes part 1(7)
SLI
Docker-CI/CD-Kubernetes part 1(5)
SLI
RazorOps Introduction | The Future of Container-Native CI/CD Pipelines
Trade, Travel and Goa Life
Application task for cologne game lab - Game programming - Democracy
Txy37901
Jenkins World 2016 - Continuously Deploying Containers with Jenkins Pipeline to Docker Swarm Cluster - YouTube (360p)
EEShwar Srinivas Jalasutram
Jenkins World 2016 - Docker Image Lifecycle Implemented with Jenkins Pipeline - YouTube (360p)
EEShwar Srinivas Jalasutram
来自同一上传者
CI/CD Pipeline Using GitHub Actions for Dockerized Application | Lab task 3
0 次观看
How to launch AWS EC2 | Lab task 1
0 次观看
How much code we need to write in visual programming exam
31 次观看
SQL Connection in Window Forms | Visual Programming
14 次观看
host project with database on infinity free hosting
46 次观看