Skip to content

Config.py fixes

Config.py fixes #11

name: Docker Image Testing Action for ghcr.io
on:
push:
branches-ignore:
- main
env:
IMAGE: code-liberation-front/dbarchive
DKRIMAGE: moyito2604/dbarchive
VERSION: testing
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Buildx Environment
uses: docker/[email protected]
with:
platforms: linux/amd64
- name: Log in to the Github Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PASS }}
- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and Push new Testing Image
uses: docker/[email protected]
with:
platforms: linux/amd64
push: true
tags: |
ghcr.io/${{ env.IMAGE }}:${{ env.VERSION }}
${{ env.DKRIMAGE }}:${{ env.VERSION }}
cache-from: type=registry,ref=ghcr.io/${{ env.IMAGE }}:${{ env.VERSION }}
cache-to: type=inline
build-args: |
TAG=${{ env.VERSION }}
provenance: false
- name: Remove untagged images excepted multiplatform packages
uses: Chizkiyahu/delete-untagged-ghcr-action@v4
with:
token: ${{ secrets.GH_PASS }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
untagged_only: true
owner_type: user
except_untagged_multiplatform: true