Add missing Label and cleanup

This commit is contained in:
2021-09-24 02:47:05 +00:00
parent 42a5e057fa
commit d3159936cd

View File

@@ -5,7 +5,8 @@ on:
branches:
- main
env:
IMAGE_REPO: ghcr.io/fluttershub
IMAGE_REGISTRY: ghcr.io
IMAGE_OWNER: fluttershub
IMAGE_NAME: homepage
jobs:
@@ -24,8 +25,8 @@ jobs:
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: fluttershub
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.IMAGE_OWNER }}
password: ${{ secrets.CR_PAT }}
- name: Build and push
@@ -33,7 +34,8 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:latest
labels: org.opencontainers.image.source https://github.com/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:latest
Deploy:
runs-on: ubuntu-latest
needs: BuildImage