More CI/CD work

I'm getting tired of github
This commit is contained in:
Neale Pickett 2022-03-31 14:20:24 -06:00
parent a90b4c2738
commit 8cf7ae4796
1 changed files with 9 additions and 2 deletions

View File

@ -35,6 +35,13 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
id: buildx id: buildx
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v2
with:
images: |
ghcr.io/${{ github.repository }}
- name: Build and push image - name: Build and push image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
@ -42,5 +49,5 @@ jobs:
file: build/Dockerfile file: build/Dockerfile
push: true push: true
platforms: linux/amd64 platforms: linux/amd64
tags: | tags: ${{ steps.meta.outputs.tags }}
ghcr.io/nealey/vail:${{ steps.vars.outputs.tag }} labels: ${{ steps.meta.output.labels }}