fixing github action

This commit is contained in:
Hamza Ahmed
2024-11-16 21:27:49 +00:00
parent aa38ec596d
commit bfedcdc4ba
+4 -12
View File
@@ -25,16 +25,10 @@ jobs:
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
@@ -48,8 +42,6 @@ jobs:
push: true push: true
build-args: | build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=true BUILDKIT_CONTEXT_KEEP_GIT_DIR=true
tags: ${{ steps.meta.outputs.tags }} tags: |
labels: ${{ steps.meta.outputs.labels }} ghcr.io/${{ github.repository_owner }}/blog-ahmza-com:latest
ghcr.io/${{ github.repository_owner }}/blog-ahmza-com:1.4.0
##ghcr.io/${{ github.repository_owner }}/blog-ahmza-com:latest
##ghcr.io/${{ github.repository_owner }}/blog-ahmza-com:${{ github.ref_name}}