-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (23 loc) · 835 Bytes
/
Copy pathmain.yml
File metadata and controls
29 lines (23 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1.6.0 # v1.6.0
- name: Log in to Docker Hub
uses: docker/login-action@0d4c9c5f114e0051d914bca15554477dd762a938 # v1.14.1 # v1.14.1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@ad82d024503b15000a683bdffec2bb5c0ccca10c # v2.10.0 # v2.10.0
with:
push: true
tags: your-dockerhub-username/agi-pipeline:latest