diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 0487f70..ed84616 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -17,14 +17,16 @@ jobs: # with: # username: ${{ secrets.DOCKERHUB_USERNAME }} # password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Get Meta + run: | + echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT - name: Build and push Docker image uses: https://github.com/docker/build-push-action@v5 with: context: . file: ./Dockerfile push: true - tags: - - registry.mgrote.net/httpd:latest + tags: "registry.mgrote.net/${{ steps.meta.outputs.REPO_NAME }}:latest" # depends on lint