Skip to content

feat: uncomment run untag #22

feat: uncomment run untag

feat: uncomment run untag #22

name: Build and Push DO registry cleaner image
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: thegangtechnology
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
cd untag-image
docker build . -t ghcr.io/thegangtechnology/digitalocean-image-registry-cleaner:latest
docker tag ghcr.io/thegangtechnology/digitalocean-image-registry-cleaner:latest ghcr.io/thegangtechnology/digitalocean-image-registry-cleaner:${{ github.ref_name}}
- name: Push Docker image
run: |
docker push ghcr.io/thegangtechnology/digitalocean-image-registry-cleaner:${{ github.ref_name}}