Skip to content

Commit b0a2b0a

Browse files
committed
Add workflow
1 parent ff57fbb commit b0a2b0a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Main branch build
2+
3+
on:
4+
push:
5+
- branches:['main']
6+
7+
jobs:
8+
docker-build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Login to Docker Hub
15+
uses: docker/login-action@v3
16+
with:
17+
username: ${{ secrets.DOCKER_USER }}
18+
password: ${{ secrets.DOCKER_TOKEN }}
19+
20+
- name: Extract metadata (tags, labels) for Docker
21+
id: meta
22+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
23+
with:
24+
images: bdv1982/tt-rss-mysql
25+
26+
- name: Build and push Docker image
27+
id: push
28+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
29+
with:
30+
context: .
31+
file: ./Dockerfile
32+
push: true
33+
tags: ${{ steps.meta.outputs.tags }}
34+
labels: ${{ steps.meta.outputs.labels }}
35+
36+

0 commit comments

Comments
 (0)