mirror of
https://github.com/e621ng/autocompleted.git
synced 2025-03-04 03:03:02 -05:00
Use composite action in CI
This commit is contained in:
parent
7768e61372
commit
44730c64b9
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user