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

oci-image-build

oci-image-build #26

Workflow file for this run

name: oci-image-build
on:
push:
branches:
- main
workflow_dispatch: {}
schedule:
- cron: '0 0 * * 0' # At 00:00 UTC on Sunday
jobs:
image:
runs-on: ubuntu-latest
steps:
- name: Assign current YYYYMMDD date to "VERSION" env variable
run: echo "VERSION=$(date +%Y%m%d)" >> $GITHUB_ENV
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Builder
uses: docker/setup-buildx-action@v2
- name: Login to Docker Container Registry
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Container Image
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
context: .
build-args: |
VERSION=${{ env.VERSION }}
push: true
tags: |
docker.io/thomaschampagne/masquarade:latest
docker.io/thomaschampagne/masquarade:${{ env.VERSION }}