Skip to content

docker nightly

docker nightly #30

name: "docker nightly"
on:
push:
branches:
- main
schedule:
- cron: "30 9 * * *"
jobs:
main:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/Dockerfile
platforms: linux/arm64,linux/amd64
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
tags: |
certpl/artemis:${{ github.sha }}
certpl/artemis:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}