Use composite action in CI

This commit is contained in:
Earlopain 2023-08-04 21:08:08 +02:00 committed by GitHub
parent 7768e61372
commit 44730c64b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,32 +15,4 @@ jobs:
if: github.repository_owner == 'e621ng'
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Github Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Generate Docker tags
uses: docker/metadata-action@v4
id: metadata
with:
images: ghcr.io/e621ng/autocompleted
tags: |
type=sha,format=long,prefix=
flavor: |
latest=true
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: e621ng/e621ng/.github/docker-build-and-push@master