Skip to content

Commit bd945dc

Browse files
authored
Create docker.yml
1 parent fb85cf7 commit bd945dc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/docker.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build & Push Docker image (latest)
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
docker:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Log in to Docker Hub
23+
uses: docker/login-action@v3
24+
with:
25+
username: ${{ secrets.DOCKERHUB_USERNAME }}
26+
password: ${{ secrets.DOCKERHUB_TOKEN }}
27+
28+
- name: Build and push (latest)
29+
uses: docker/build-push-action@v6
30+
with:
31+
context: .
32+
file: ./Dockerfile
33+
push: true
34+
tags: oceanenterprise/market:latest
35+
cache-from: type=gha
36+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)