Skip to content

Commit fc23213

Browse files
Create main.yml
Creates main.yml github action for automatically building docker container and pushing to dockerhub.
1 parent 107fffc commit fc23213

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Login to Docker Hub
14+
uses: docker/login-action@v3
15+
with:
16+
username: ${{ vars.DOCKERHUB_USERNAME }}
17+
password: ${{ secrets.DOCKERHUB_TOKEN }}
18+
-
19+
name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
-
22+
name: Build and push
23+
uses: docker/build-push-action@v6
24+
with:
25+
push: true
26+
tags: ${{ vars.DOCKERHUB_USERNAME }}/rss2newsletter:latest

0 commit comments

Comments
 (0)