Continuous Deployment #1373
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: Continuous Deployment | |
on: | |
push: | |
branches: | |
- master | |
- v1 | |
schedule: | |
- cron: "0 0 * * *" | |
release: | |
types: | |
- published | |
env: | |
DOCKER_BUILDKIT: 1 | |
jobs: | |
bref: | |
name: build and publish gogaille/bref image | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: gogaille/bref | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- name: build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./bref | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |