Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

create and publish docker image #222

create and publish docker image

create and publish docker image #222

name: create and publish docker image
on:
schedule:
- cron: '0 0 * * 5'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: checkout repository
uses: actions/checkout@v3
-
name: set up QEMU
uses: docker/setup-qemu-action@v2
-
name: set up docker buildx
uses: docker/setup-buildx-action@v2
-
name: log in to the container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.PACKAGES_ACCESS_TOKEN }}
-
name: build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}