CD #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD | |
on: | |
schedule: | |
- cron: '00 4 * * *' | |
push: | |
branches: | |
- main | |
- issue13/add-continuous-building | |
jobs: | |
build: | |
name: Build Docker Images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
install: true | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Debug | |
run: | | |
docker buildx bake --print | |
- name: Build and push images | |
uses: docker/bake-action@v4 | |
env: | |
ALPINE_VERSION: 3.19.0 | |
with: | |
push: true | |
provenance: mode=max |