Skip to content

Commit

Permalink
ci: Added github actions to build and push new images regularly
Browse files Browse the repository at this point in the history
  • Loading branch information
frol committed Oct 29, 2022
1 parent 460f794 commit 4e51836
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: ci

on:
push:
branches:
- 'master'
schedule:
# Daily
- cron: '0 0 * * *'

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
pull: true
push: true
tags: frolvlad/alpine-env:latest
cache-from: type=registry,ref=frolvlad/alpine-env:latest
cache-to: type=inline

0 comments on commit 4e51836

Please sign in to comment.