Skip to content

Build and release container #14

Build and release container

Build and release container #14

name: Build and release container
on:
workflow_dispatch:
schedule:
- cron: '1 2 3 * *'
push:
branches:
- "main"
- "master"
paths-ignore:
- .gitea/**
- .github/**
- .gitlab-ci.yml
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set RELEASE_DATE
run: |
echo "RELEASE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to registry
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker AMD64/ARM64 images
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
platforms: linux/amd64, linux/arm64
push: true
tags: docker.io/john3box/actbuildx:latest,docker.io/john3box/actbuildx:${{ env.RELEASE_DATE }}