-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 1.13 KB
/
build-docker.yaml
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
name: Build and publish epimind to Docker Hub
on:
[workflow_dispatch]
jobs:
publish_images:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: build image
run: docker build -t ainilaha/epimind:latest -t ainilaha/epimind:v0.0.1 .
- name: push image to docker hub
run: |
docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_TOKEN }}
docker push ainilaha/epimind:latest
docker push ainilaha/epimind:v0.0.1
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Build and push
# run: |
# docker buildx build --platform linux/amd64,linux/arm64 -t epimind:latest .
# echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
# docker tag epimind:latest ${{ secrets.DOCKER_USERNAME }}/epimind:latest
# docker push ${{ secrets.DOCKER_USERNAME }}/epimind:latest