Skip to content

Update Dockerfile base image #52

Update Dockerfile base image

Update Dockerfile base image #52

---
name: docker-publish
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'LICENSE.md'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Cleanup previous registry version
uses: kc1r74p/delete-package-versions@main
with:
owner: ${{ github.repository_owner }}
package-name: 'autorender'
package-type: 'container'
ignore-tag: 'main'
token: ${{ secrets.GH_PAT }}