Add missing Label and cleanup
This commit is contained in:
10
.github/workflows/actions.yml
vendored
10
.github/workflows/actions.yml
vendored
@@ -5,7 +5,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
env:
|
env:
|
||||||
IMAGE_REPO: ghcr.io/fluttershub
|
IMAGE_REGISTRY: ghcr.io
|
||||||
|
IMAGE_OWNER: fluttershub
|
||||||
IMAGE_NAME: homepage
|
IMAGE_NAME: homepage
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -24,8 +25,8 @@ jobs:
|
|||||||
- name: Login to ghcr.io
|
- name: Login to ghcr.io
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ${{ env.IMAGE_REGISTRY }}
|
||||||
username: fluttershub
|
username: ${{ env.IMAGE_OWNER }}
|
||||||
password: ${{ secrets.CR_PAT }}
|
password: ${{ secrets.CR_PAT }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
@@ -33,7 +34,8 @@ jobs:
|
|||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
push: true
|
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:
|
Deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: BuildImage
|
needs: BuildImage
|
||||||
|
|||||||
Reference in New Issue
Block a user