Master push #20
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
# builds and pushes image on master pushes | |
# and every 1st and 15th of the month | |
name: Master push | |
on: | |
schedule: | |
- cron: '0 0 1,15 * *' | |
push: | |
branches: | |
- 'master' | |
paths-ignore: | |
- '.gitignore' | |
- 'docker-compose.yml' | |
- 'LICENSE' | |
- '**.md' | |
jobs: | |
build_test_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to GitHub Docker Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
tags: ghcr.io/vroom-project/vroom-docker:latest | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |