Skip to content

Commit ae7789e

Browse files
committed
ci: Added github actions to build and push new images regularly
1 parent cf1224f commit ae7789e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
schedule:
8+
# Daily
9+
- cron: '0 0 * * *'
10+
11+
jobs:
12+
docker:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Set up QEMU
17+
uses: docker/setup-qemu-action@v2
18+
-
19+
name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v2
21+
-
22+
name: Login to Docker Hub
23+
uses: docker/login-action@v2
24+
with:
25+
username: ${{ secrets.DOCKERHUB_USERNAME }}
26+
password: ${{ secrets.DOCKERHUB_TOKEN }}
27+
-
28+
name: Build and push
29+
uses: docker/build-push-action@v3
30+
with:
31+
pull: true
32+
push: true
33+
tags: frolvlad/alpine-glibc:latest,frolvlad/alpine-glibc:alpine-3.16_glibc-2.35,frolvlad/alpine-glibc:alpine-3.16,frolvlad/alpine-glibc:glibc-2.35
34+
cache-from: type=registry,ref=frolvlad/alpine-glibc:latest
35+
cache-to: type=inline

0 commit comments

Comments
 (0)