Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Docker Publish

Docker Publish #59

Workflow file for this run

---
name: Docker Publish
on:
push:
branches:
- main
schedule:
- cron: "30 2 2 * *"
jobs:
buildDockerImage:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/Proteus-Eretes/mijn-proteus
tags: |
type=sha, prefix={{date 'X'}}-
latest
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true