tangled
alpha
login
or
join now
jaydip.me
/
moocup
4
fork
atom
stunning screenshots in seconds https://moocup.jaydip.me
4
fork
atom
overview
issues
2
pulls
pipelines
added github actions
Jaydip Sanghani
7 months ago
000166f7
ca2cd379
+29
1 changed file
expand all
collapse all
unified
split
.github
workflows
docker-build.yml
+29
.github/workflows/docker-build.yml
···
1
1
+
name: Build and Push Docker image
2
2
+
3
3
+
on:
4
4
+
push:
5
5
+
branches: ["main"]
6
6
+
7
7
+
jobs:
8
8
+
docker:
9
9
+
runs-on: ubuntu-latest
10
10
+
11
11
+
steps:
12
12
+
- name: Checkout source
13
13
+
uses: actions/checkout@v4
14
14
+
15
15
+
- name: Log in to Docker Hub
16
16
+
uses: docker/login-action@v2
17
17
+
with:
18
18
+
username: ${{ secrets.DOCKERHUB_USERNAME }}
19
19
+
password: ${{ secrets.DOCKERHUB_TOKEN }}
20
20
+
21
21
+
- name: Set up Docker Buildx
22
22
+
uses: docker/setup-buildx-action@v3
23
23
+
24
24
+
- name: Build and push
25
25
+
uses: docker/build-push-action@v5
26
26
+
with:
27
27
+
context: .
28
28
+
push: true
29
29
+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/moocup:latest